WM_SETCURSOR
The
WM_SETCURSOR message is sent to a window if the mouse causes the cursor to move
within a window and mouse input is not captured.
WM_SETCURSOR
hwnd = (HWND) wParam; // handle of window with cursor
nHittest = LOWORD(lParam); // hit-test code
wMouseMsg = HIWORD(lParam); // mouse-message
identifier
Parameters
hwnd
Value of wParam.
Identifies the window that contains the cursor.
nHittest
Value of the
low-order word of lParam. Specifies the hit-test code.
wMouseMsg
Value of the
high-order word of lParam. Specifies the identifier of the mouse
message.
Default Action
The DefWindowProc
Remarks
The
high-order word of lParam is zero when the window enters menu mode.
See Also