CRectTracker::SetCursor

BOOL SetCursor( CWnd* pWnd, UINT nHitTest ) const;

Return Value

Nonzero if the previous hit was over the tracker rectangle; otherwise 0.

Parameters

pWnd

Points to the window that currently contains the cursor.

nHitTest

Results of the previous hit test, from the WM_SETCURSOR message.

Remarks

Call this function to change the cursor shape while it is over the CRectTracker object’s region.

Call this function from inside the function of your window that handles the WM_SETCURSOR message (typically OnSetCursor).

CRectTracker OverviewClass MembersHierarchy Chart

See Also   CRectTracker::NormalizeHit, CRectTracker::HitTest, CWinApp::LoadCursor, CWnd::OnSetCursor