Compartir a través de


CRectTracker::SetCursor

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

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

Parameters

  • pWnd
    Points to the window that currently contains the cursor.

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

Return Value

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

Remarks

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

Requirements

Header: afxext.h

See Also

Concepts

CRectTracker Class

CRectTracker Members

Hierarchy Chart

CRectTracker::NormalizeHit

CRectTracker::HitTest

CWinApp::LoadCursor

CWnd::OnSetCursor