MTM_SetCursor

Messages ››
Parent Previous Next

MTM_SetCursor

Replaces WM_SETCURSOR.
This message is sent to a table if the mouse causes the cursor to move within a window and mouse input is not captured.

Parameters
wParam
Handle to the window that contains the cursor. See SDK documentation for further details.
lParam
Low-order word: Hit-test code. See SDK documentation for further details.
High-order word: Specifies the identifier of the mouse message. See SDK documentation for further details.

Return
Return MTBL_NODEFAULTACTION to avoid processing the WM_SETCURSOR message, otherwise return 0

Remarks
When a table is subclassed with MTblSubClass( ), the implemented window procedure sometimes "eats" WM_SETCURSOR messages in order to avoid standard actions. Therefore M!Table sends MTM_SetCursor so that you are able to process it. MTM_SetCursor is always sent, even if WM_SETCURSOR wasn't "eaten".

Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle