int NormalizeHit( int nHandle ) const;
Return Value
The index of the normalized handle.
Parameters
nHandle
Handle selected by the user.
Remarks
Call this function to convert a potentially inverted handle.
When CRectTracker::Track or CRectTracker::TrackRubberBand is called with inverting allowed, it is possible for the rectangle to be inverted on the x-axis, the y-axis, or both. When this happens, HitTest will return handles that are also inverted with respect to the rectangle. This is inappropriate for drawing cursor feedback because the feedback depends on the screen position of the rectangle, not the portion of the rectangle data structure that will be modified.
CRectTracker Overview | Class Members | Hierarchy Chart
See Also CRectTracker::HitTest, CRectTracker::Track, CRectTracker::TrackRubberBand