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.
MSG结构包含来自线程消息队列的消息信息。具体包括窗口句柄、消息标识符、两个额外信息参数及消息发布时间和光标位置等。该结构常用于Windows编程中处理消息。
2331

被折叠的 条评论
为什么被折叠?



