msgs12.hlp (Topic list)
WM_MOUSEMOVE (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WININPUT
 
WM_MOUSEMOVE
x = SHORT1FROMMP(mp1);        /* horizontal position */
y = SHORT2FROMMP(mp1);        /* vertical position   */
usHit = SHORT1FROMMP(mp2);    /* hit-test result     */
 
The WM_MOUSEMOVE message is sent to a window when the mouse pointer moves.
If the mouse is not captured, the message goes to the window beneath the
mouse pointer. Otherwise, the message goes to the mouse-capture window.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
x          Low word of mp1. Specifies the horizontal mouse coordinate,
           relative to the window's lower-left corner.
 
y          High word of mp1. Specifies the vertical mouse coordinate,
           relative to the window's lower-left corner.
 
usHit      Low word of mp2. Specifies the result of a WM_HITTEST message or
           is zero if a mouse-capture operation is in process.
 
Return Value
 
An application should return TRUE if it processes this message or FALSE if
it does not.
 
Comments
 
An application that processes the WM_MOUSEMOVE message and does not call the
WinDefWindowProc function as part of that processing should call the
WinSetPointer function to set the mouse pointer.
 
Note that windows not registered with the style CS_HITTEST do not receive
this message.
 
See Also
 
WinDefWindowProc, WinSetPointer, WM_HITTEST