Event Handling

Windows CE is an event-driven OS. Each message is passed in the message MSG structure. The Windows CE MSG structure contains six members. Message hooks are not supported. The following table shows supported members.

Member
Description
hwnd Handle to the window whose window procedure receives the message.
message Specifies the message number.
wParam Specifies additional message data. The exact meaning depends on the value of the message member.
lParam Specifies additional message data. The exact meaning depends on the value of the message member.
time Specifies the time that the message was posted.
pt Specifies the coordinates of the last position touched on the screen, when the message was posted.