MSG

This structure contains message information from a thread’s message queue.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

typedef struct tagMSG {
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
}
MSG;

Members

hwnd

Handle to the window whose window procedure receives the message.

message

Specifies the message identifier.

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.

Remarks

On Windows CE–based devices that use a stylus and touch screen instead of a mouse, the pt member contains the coordinates of the last position touched on the screen, rather than the coordinates of the current cursor position.

If you need mouse cursor support in your application, use the Windows CE Iconcurs component rather than the Windows CE Icon component and the Windows CE Mcursor component rather than the Windows CE Cursor component.

See Also

GetMessage, PeekMessage