Поделиться через


CRectTracker::NormalizeHit

Call this function to convert a potentially inverted handle.

int NormalizeHit(
   int nHandle 
) const;

Параметры

  • nHandle
    Handle selected by the user.

Возвращаемое значение

The index of the normalized 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.

Требования

Header: afxext.h

См. также

Основные понятия

CRectTracker Class

CRectTracker Members

Hierarchy Chart

CRectTracker::HitTest

CRectTracker::Track

CRectTracker::TrackRubberBand