Düzenle

Aracılığıyla paylaş


MSG structure (winuser.h)

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;
  DWORD  lPrivate;
} MSG, *PMSG, *NPMSG, *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.

lPrivate

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Header winuser.h (include Windows.h)

See also

Conceptual

GetMessage

Messages and Message Queues

PeekMessage

PostThreadMessage

Reference