Construction Methods
Method | Description |
---|---|
CRectTracker | Constructs a CRectTracker object. |
Method | Description |
---|---|
Draw | Renders the rectangle. |
GetTrueRect | Returns width and height of rectangle, including resize handles. |
HitTest | Returns the current position of the cursor related to the CRectTracker object. |
NormalizeHit | Normalizes a hit-test code. |
SetCursor | Sets the cursor, depending on its position over the rectangle. |
Track | Allows the user to manipulate the rectangle. |
TrackRubberBand | Capture the mouse until the user presses the escape key or performs another release action. |
Overridables Methods
Method | Description |
---|---|
AdjustRect | Called when the rectangle is resized. |
DrawTrackerRect | Called when drawing the border of a CRectTracker object. |
OnChangedRect | Called when the rectangle has been resized or moved. |
GetHandleMask | Called to get the mask of a CRectTracker item’s resize handles. |