Microsoft Windows CE 3.0  

MSG

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

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 messagemember.
lParam
Specifies additional information about the message. The exact meaning depends on the value of the messagemember.
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 ptmember 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.

The timemember is the number of milliseconds since a cold or warm boot on a device. It is the value returned by the GetTickCountfunction. Not included is the time that a device is in suspend mode.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetMessage, GetTickCount, PeekMessage