MSG structure
Contains message information from a thread's message queue.
Syntax
typedef struct tagMSG { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt; } MSG, *PMSG, *LPMSG;
Members
- hwnd
-
Type: HWND
-
A handle to the window whose window procedure receives the message. This member is NULL when the message is a thread message.
- message
-
Type: UINT
-
The message identifier. Applications can only use the low word; the high word is reserved by the system.
- wParam
-
Type: WPARAM
-
Additional information about the message. The exact meaning depends on the value of the message member.
- lParam
-
Type: LPARAM
-
Additional information about the message. The exact meaning depends on the value of the message member.
- time
-
Type: DWORD
-
The time at which the message was posted.
- pt
-
Type: POINT
-
The cursor position, in screen coordinates, when the message was posted.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Header |
|
See also
- Reference
- GetMessage
- PeekMessage
- PostThreadMessage
- Conceptual
- Messages and Message Queues