windows_programming_notes.nbk: Home | Index | Next Page: MSGBOXPARAMS | Previous Page: MoveWindow
MSG
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. hwnd is NULL when the message is a thread 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.
Structure Information
- Header Declared in Winuser.h, include Windows.h
- Minimum operating systems Windows 95, Windows NT 3.1
windows_programming_notes.nbk: Home | Index | Next Page: MSGBOXPARAMS | Previous Page: MoveWindow
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time