CRectTracker::Track

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.

Syntax

BOOL Track( CWnd* pWnd, CPoint point, BOOL bAllowInvert = FALSE, CWnd* pWndClipTo = NULL );

At a Glance

Header File Afxext.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CRectTracker Overview, CRectTracker Member Functions, Support Classes, CRectTracker::DrawTrackerRect, CRectTracker::OnChangedRect, CRectTracker::CRectTracker, CRectTracker::TrackRubberBand