Partager via


CRectTracker::DrawTrackerRect

Called by the framework whenever the position of the tracker has changed while inside the Track or TrackRubberBand member function.

virtual void DrawTrackerRect( 
   LPCRECT lpRect, 
   CWnd* pWndClipTo, 
   CDC* pDC, 
   CWnd* pWnd  
);

Parameters

  • lpRect
    Pointer to the RECT that contains the rectangle to draw.

  • pWndClipTo
    Pointer to the window to use in clipping the rectangle.

  • pDC
    Pointer to the device context on which to draw.

  • pWnd
    Pointer to the window on which the drawing will occur.

Remarks

The default implementation makes a call to CDC::DrawFocusRect, which draws a dotted rectangle.

Override this function to provide different feedback during the tracking operation.

Requirements

Header: afxext.h

See Also

Reference

CRectTracker Class

Hierarchy Chart

CRectTracker::Track

CRectTracker::TrackRubberBand

CDC::DrawFocusRect