Condividi tramite


CRectTracker Members

Data Members

m_nHandleSize

Determines size of resize handles.

m_nStyle

Current style(s) of the tracker.

m_rect

Current position (in pixels) of the rectangle.

m_sizeMin

Determines minimum rectangle width and height.

Construction

CRectTracker

Constructs a CRectTracker object.

Operations

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

Allows the user to "rubber-band" the selection.

Overridables

AdjustRect

Called when the rectangle is resized.

DrawTrackerRect

Called when drawing the border of a CRectTracker object.

GetHandleMask

Called to get the mask of a CRectTracker item's resize handles.

OnChangedRect

Called when the rectangle has been resized or moved.

See Also

Reference

CRectTracker Class

Hierarchy Chart