Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MSG

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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; 

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.

On Windows Embedded 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 Embedded CE Iconcurs component rather than the Windows Embedded CE Icon component and the Windows Embedded CE Mcursor component rather than the Windows Embedded CE Cursor component.

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

Headerwinuser.h
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft