Condividi tramite


CRectTracker::SetCursor

Chiamare la funzione per modificare la forma del cursore quando si trova sopra l'area dell'oggetto CRectTracker.

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

Parametri

  • pWnd
    Punta alla finestra che contiene il cursore.

  • nHitTest
    Risultati di un hit test precedente, il messaggio WM_SETCURSOR.

Valore restituito

Diverso da zero se la riga precedente è stata eseguita sul rettangolo di tracker; in caso contrario 0.

Note

Chiamare questa funzione dalla funzione della finestra che gestisce il messaggio WM_SETCURSOR (in genere OnSetCursor).

Requisiti

Header: afxext.h

Vedere anche

Riferimenti

Classe CRectTracker

Grafico delle gerarchie

CRectTracker::NormalizeHit

CRectTracker::HitTest

CWinApp::LoadCursor

CWnd::OnSetCursor