virtual UINT GetHandleMask( ) const;
Return Value
The mask of a CRectTracker item’s resize handles.
Remarks
The framework calls this member function to retrieve the mask for a rectangle’s resize handles.
The resize handles appear on the sides and corners of the rectangle and allow the user to control the shape and size of the rectangle.
A rectangle has 8 resize handles numbered 0–7. Each resize handle is represented by a bit in the mask; the value of that bit is 2^n, where n is the resize handle number. Bits 0–3 correspond to the corner resize handles, starting at the top left moving clockwise. Bits 4–7 correspond to the side resize handles starting at the top moving clockwise. The following illustration shows a rectangle’s resize handles and their corresponding resize handle numbers and values:
The default implementation of GetHandleMask returns the mask of the bits so that the resize handles appear. If the single bit is on, the corresponding resize handle will be drawn.
Override this member function to hide or show the indicated resize handles.
CRectTracker Overview | Class Members | Hierarchy Chart
See Also CRectTracker::AdjustRect