Applies to: desktop apps | Metro style apps
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 |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
See also
- Reference
- GetMessage
- PeekMessage
- PostThreadMessage
- Conceptual
- Messages and Message Queues
Send comments about this topic to Microsoft
Build date: 2/3/2012