Jump to content

WM MOUSEMOVE

From EDM2

This message occurs when the pointing device pointer moves.

Syntax

param1
    SHORT    sxMouse;    /* Pointing device x-coordinate. */
    SHORT    syMouse;    /* Pointing device y-coordinate. */

param2
    USHORT   uswHitTest; /* Message result. */
    USHORT   fsflags;    /* Keyboard control codes. */

Parameters

sxMouse (SHORT) - Input
Pointing device x-coordinate.
syMouse (SHORT) - Input
Pointing device y-coordinate.
uswHitTest (USHORT) - Input
Message result.
Zero
A pointing device capture is currently in progress.
Other
The result of the WM_HITTEST message.
fsflags (USHORT) - Input
Keyboard control codes. In addition to the control codes described with the WM_CHAR message, the following keyboard control codes are valid:
KC_NONE
Indicates that no key is pressed.

Returns

rc (BOOL) - returns
Processed indicator.
TRUE
The window procedure did process the message.
FALSE
The window procedure did not process the message.

Remarks

The keyboard control codes specified by flags reflects the keyboard state at the time the mouse message was initiated. This may or may not reflect the current keyboard state.

param1 contains the position of the pointing device in window coordinates relative to the bottom-left corner of the window.

in Mulitline Entry Fields

The mouse pointer moves and is of interest to the MLE. If refresh is disabled, the pointer is set to the wait icon (a clock face). If refresh is enabled, the pointer is set to an I-beam. This message can occur during dragging or when simply tracking the mouse.

Dragging
Dragging sets the selection anchor to be the point where dragging begins, and moves the cursor point along with it as the mouse is moved. Moving the pointer into the margins while dragging produces a scroll in the appropriate direction and continues selecting.
Margin Mouse Event
All mouse events in a margin cause the MLE to send a MLN_MARGIN notification to the owner window MLE. This message has, as its parameters, the original mouse message. The owner can process the notification or not. If the owner does not process the message, the event is treated as if it occurred on the closest point in the text.

Default Processing

The default window procedure sets the pointer shape using the WinSetPointer function and sets rc to FALSE.

in Mulitline Entry Fields

The default window procedure takes no action on this message, other than to set rc to 0 (FALSE).

Related Messages

  • WM_MOUSEMOVE (in Mulitline Entry Fields)