Freigeben über


CRectTracker::NormalizeHit

Call this function to convert a potentially inverted handle.

int NormalizeHit(
   int nHandle 
) const;

Parameters

  • nHandle
    Handle selected by the user.

Return Value

The index of the normalized handle.

Remarks

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.

Requirements

Header: afxext.h

See Also

Concepts

CRectTracker Class

CRectTracker Members

Hierarchy Chart

CRectTracker::HitTest

CRectTracker::Track

CRectTracker::TrackRubberBand