Msg的结构体有哪些成员?

来源:百度知道 编辑:UC知道 时间:2024/06/27 08:16:12
Msg的结构体有哪些成员?

msg结构
typedef struct tagMSG{
HWND hWnd; 所欲送达的窗口代码(handle)
UINTmessage;消息为-Unsign 整数(int)
WPARAMwParam;相关参数后文说明
LPARAMtParam;相关参数后文说明
DWORDtime 时间
POINTpt 鼠标光标位置
}MSG;
CALL-BACK FUNCTION(回调函数)

typedef struct tagMSG {
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