Lines Matching refs:rect
111 RECT rect = *lpRect; in DrawDragRect() local
112 InflateRect(&rect,-size.cx, -size.cy); in DrawDragRect()
113 IntersectRect(&rect,&rect,lpRect); in DrawDragRect()
114 rgnInside = CreateRectRgnIndirect(&rect); in DrawDragRect()
136 rect = *lpRectLast; in DrawDragRect()
137 InflateRect(&rect,-sizeLast.cx, -sizeLast.cy); in DrawDragRect()
138 IntersectRect(&rect,&rect, lpRectLast); in DrawDragRect()
139 SetRectRgn(rgnInside,rect.left,rect.top,rect.right,rect.bottom); in DrawDragRect()
153 GetClipBox(hDC,&rect); in DrawDragRect()
155 PatBlt(hDC,rect.left,rect.top,(rect.right-rect.left),(rect.bottom-rect.top),PATINVERT); in DrawDragRect()
164 GetClipBox(hDC,&rect); in DrawDragRect()
166 PatBlt(hDC,rect.left, rect.top,(rect.right-rect.left),(rect.bottom-rect.top), PATINVERT); in DrawDragRect()
175 void winwrap::TransformRect(LPRECT rect,HWND pWnd,HWND pWndClipTo) in TransformRect() argument
178 pt.x = rect->left;pt.y = rect->top; in TransformRect()
181 rect->left = pt.x; rect->top = pt.y; in TransformRect()
183 pt.x = rect->right;pt.y = rect->bottom; in TransformRect()
186 rect->right = pt.x; rect->bottom = pt.y; in TransformRect()
529 RECT rect = *lpRect; in DrawTrackerRect() local
530 NormalizeRect(&rect); in DrawTrackerRect()
534 TransformRect(&rect,pWnd,pWndClipTo); in DrawTrackerRect()
543 size.cx = size.cy = max(1,GetHandleSize(&rect)-1); in DrawTrackerRect()
544 InflateRect(&rect,size.cx,size.cy); in DrawTrackerRect()
555 DrawDragRect(pDC,&rect,size,&m_rectLast,m_sizeLast); in DrawTrackerRect()
558 m_rectLast = rect; in DrawTrackerRect()
571 RECT rect = m_rect; in Draw() local
572 NormalizeRect(&rect); in Draw()
588 InflateRect(&rect,+1, +1); // borders are one pixel outside in Draw()
589 Rectangle(hDC,rect.left, rect.top, rect.right, rect.bottom); in Draw()
608 Rectangle(hDC,rect.left+1, rect.top+1, rect.right, rect.bottom); in Draw()
622 rect.top-rectTrue.top, 0x000F0001 /* Pn */); in Draw()
623 PatBlt(hDC,rectTrue.left, rect.bottom, in Draw()
625 rectTrue.bottom-rect.bottom, 0x000F0001 /* Pn */); in Draw()
626 PatBlt(hDC,rectTrue.left, rect.top, rect.left-rectTrue.left, in Draw()
627 rect.bottom-rect.top, 0x000F0001 /* Pn */); in Draw()
628 PatBlt(hDC,rect.right, rect.top, rectTrue.right-rect.right, in Draw()
629 rect.bottom-rect.top, 0x000F0001 /* Pn */); in Draw()
641 GetHandleRect((TrackerHit)i, &rect); in Draw()
643 FillRect(hDC,&rect,hbrush); in Draw()
678 RECT rect; in GetHandleRect() local
680 rect.left = *(int*)((BYTE*)&rectT + pHandleInfo->nOffsetX); in GetHandleRect()
681 rect.top = *(int*)((BYTE*)&rectT + pHandleInfo->nOffsetY); in GetHandleRect()
682 rect.left += size * pHandleInfo->nHandleX; in GetHandleRect()
683 rect.top += size * pHandleInfo->nHandleY; in GetHandleRect()
684 rect.left += pHandleInfo->nCenterX * (nWidth - size) / 2; in GetHandleRect()
685 rect.top += pHandleInfo->nCenterY * (nHeight - size) / 2; in GetHandleRect()
686 rect.right = rect.left + size; in GetHandleRect()
687 rect.bottom = rect.top + size; in GetHandleRect()
689 *pHandleRect = rect; in GetHandleRect()
725 RECT rect = m_rect; in GetTrueRect() local
726 NormalizeRect(&rect); in GetTrueRect()
732 InflateRect(&rect,nInflateBy, nInflateBy); in GetTrueRect()
733 *lpTrueRect = rect; in GetTrueRect()
755 RECT rect; in HitTestHandles() local
759 GetTrueRect(&rect); in HitTestHandles()
760 if (!PtInRect(&rect,point)) in HitTestHandles()
768 GetHandleRect((TrackerHit)i, &rect); in HitTestHandles()
769 if (PtInRect(&rect,point)) in HitTestHandles()
777 RECT rect = m_rect; in HitTestHandles() local
778 NormalizeRect(&rect); in HitTestHandles()
780 InflateRect(&rect,+1, +1); in HitTestHandles()
781 if (!PtInRect(&rect,point)) in HitTestHandles()