Call this member function to display the user interface for resizing the rectangle. This is usually called from inside the function of your application that handles the WM_LBUTTONDOWN message (typically OnLButtonDown).
This function will capture the mouse until the user releases the left mouse button, presses the ESC key, or presses the right mouse button. As the user moves the mouse cursor, the feedback is updated by calling DrawTrackerRect and OnChangedRect.
BOOL Track( CWnd* pWnd, CPoint point, BOOL bAllowInvert = FALSE, CWnd* pWndClipTo = NULL );
Header File | Afxext.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CRectTracker Overview, CRectTracker Member Functions, Support Classes, CRectTracker::DrawTrackerRect, CRectTracker::OnChangedRect, CRectTracker::CRectTracker, CRectTracker::TrackRubberBand