示例#1
0
        static public bool IntersectRect(CRect rect1, CRect rect2)
        {
            if (rect1.left == rect2.left && rect1.top == rect2.top && rect1.Width() == rect2.Width() && rect1.Height() == rect2.Height())
            {
                return(false);
            }

            return(true);
        }
示例#2
0
        //激活窗口
        public bool ActiveWindow(CRect rcWindow, int dwStyle, int uWindowID, CVirtualEngine pVirtualEngine, CVirtualWindow pParentWindow)
        {
            m_BenchmarkPos.x = rcWindow.left;
            m_BenchmarkPos.y = rcWindow.top;

            m_WindowSize.cx = rcWindow.Width();
            m_WindowSize.cy = rcWindow.Height();

            if ((dwStyle & WS_VISIBLE) > 0)
            {
                m_bVisible = true;
            }

            if ((dwStyle & WS_DISABLED) == 0)
            {
                m_bEnable = true;
            }

            m_uWindowID = uWindowID;

            m_pVirtualEngine = pVirtualEngine;

            return(true);
        }