Поделиться через


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;

Параметры

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

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

Возвращаемое значение

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

Заметки

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

Требования

Header: afxext.h

См. также

Основные понятия

CRectTracker Class

CRectTracker Members

Hierarchy Chart

CRectTracker::NormalizeHit

CRectTracker::HitTest

CWinApp::LoadCursor

CWnd::OnSetCursor