CRectTracker::Track

This method displays the user interface for resizing the rectangle. This is usually called from inside the method of your application that handles the WM_LBUTTONDOWN message (typically OnLButtonDown).

This method 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.

At a Glance

Header file: Afxext.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

CRectTracker::DrawTrackerRect, CRectTracker::OnChangedRect, CRectTracker::CRectTracker, CRectTracker::TrackRubberBand