| | |
Optional event | Information returned in the _EVE.LParam variable | Information returned in the _EVE.WParam variable |
---|
Mouse hover (WM_MOUSEMOVE)
Left mouse button down (WM_LBUTTONDOWN)
Left mouse button up (WM_LBUTTONUP)
Double click with the left mouse button (WM_LBUTTONDBLCLK)
Right mouse button down (WM_RBUTTONDOWN)
Right mouse button up (WM_RBUTTONUP)
Double click with the right mouse button (WM_RBUTTONDBLCLK) | - High byte (returned by HiWord): Vertical position (Y) of mouse cursor in relation to the specified control or window (equivalent to MouseYPos).
- Low byte (returned by LoWord): Horizontal position (X) of mouse cursor in relation to the specified control or window (equivalent to MouseXPos).
| Key pressed in the format of a MK_XXX constant |
Mouse wheel (WM_MOUSEWHEEL) | - High byte (returned by HiWord): Vertical position (Y) of mouse cursor in relation to the specified control or window (equivalent to MouseYPos).
- Low byte (returned by LoWord): Horizontal position (X) of mouse cursor in relation to the specified control or window (equivalent to MouseXPos).
| - High byte (returned by HiWord): Rotational direction of mouse wheel (positive number: move to the top ; negative number: move to the bottom)
- Low byte (returned by LoWord): Key pressed in the format of a MK_XXX constant
|
Key down (WM_KEYDOWN) Key up (WM_KEYUP) | | Key pressed in the format of a VK_XXX constant |
Key pressed (WM_CHAR) | | ASCII code of the key pressed (can be handled by Charact) |
System key down (WM_SYSKEYDOWN) System key up (WM_SYSKEYUP) | | Key pressed in the format of a VK_XXX constant |
System key pressed (WM_SYSCHAR) | | ASCII code of the system key pressed |
Horizontal scrollbar (WM_HSCROLL) Vertical scrollbar (WM_VSCROLL) | Handle of scrollbar | - High byte (returned by HiWord): Position of scrollbar box
- Low byte (returned by LoWord): Method used to move the scrollbar box, in the format of an SB_XXX constant
|
Display of context menu (WM_CONTEXTMENU) | - High byte (returned by HiWord): Vertical position (Y) of mouse cursor in relation to the specified control or window (equivalent to MouseYPos).
- Low byte (returned by LoWord): Horizontal position (X) of mouse cursor in relation to the specified control or window (equivalent to MouseXPos).
Remark: If these values are equal to -1, the popup menu was opened by the Windows key for opening the popup menu | Handle of window or control from which the popup menu is called |
Move (WM_MOVE) | - High byte (returned by HiWord):
- vertical position of the upper-left corner of the window relative to the upper-left corner of the screen (equivalent to the Y property)
- vertical position of the upper-left corner of the control relative to the upper-left corner of the window client area (equivalent to the Y property).
- Low byte (returned by LoWord):
- horizontal position of the upper-left corner of the window relative to the upper-left corner of the screen (equivalent to the X property)
- horizontal position of the upper-left corner of the control relative to the upper-left corner of the client area of the window (equivalent to the X property).
| |
Resize (WM_SIZE) | - High byte (returned by HiWord): Height of control or window (equivalent to Height).
- Low byte (returned by LoWord): Width of control or window (equivalent to Width).
| Display mode of window (minimized, maximized, ...) in the format of a SIZE_XXX constant (equivalent to WinSize). |
Gain focus (WM_SETFOCUS) | | Handle of window or control that took focus. |
Lose focus (WM_KILLFOCUS) | | Handle of window or control that took focus. |