Low byte (returned by LoWord): Method used to move the scrollbar box, in the format of an SB_XXX constant

Display of popup menu (WM_CONTEXTMENU)

High byte (returned by HiWord): Vertical position (Y) of mouse cursor in relation to the relevant 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)

Note: 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 top left corner of window in relation to the top left corner of screen (equivalent to ..Y) -vertical position of top left corner of control in relation to the top left corner of client area of window (equivalent to ..Y).

Low byte (returned by LoWord): - horizontal position of left corner of window in relation to the top left corner of screen (equivalent to ..X) - horizontal position of top left corner of control in relation to the top left corner of client area of window (equivalent to ..X).

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 of focus (WM_SETFOCUS)

Handle of window or control that took focus

Loss of focus (WM_KILLFOCUS)

Handle of window or control that took focus

MK_XX constants

The MK_XXX constants are as follows:

MK_CONTROL

8

[Ctrl] key down

MK_LBUTTON

1

Left mouse button down

MK_MBUTTON

16

Middle mouse button down

MK_RBUTTON

2

Right mouse button down

MK_SHIFT

4

[Shift] key down

Before using these constants, you must enter the following code lines: