The MSG structure contains message information from a thread's message queue.
Syntax
typedef struct { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt; } MSG, *PMSG;
Members
hwnd
- Handle to the window whose window procedure receives the message.
message- Specifies the message identifier. Applications can only use the low word; the high word is reserved by the system.
wParam- Specifies additional information about the message. The exact meaning depends on the value of the message member.
lParam- Specifies additional information about the message. The exact meaning depends on the value of the message member.
time- Specifies the time at which the message was posted.
pt- Specifies the cursor position, in screen coordinates, when the message was posted.