Compartilhar via


Windows Messages (Windows CE 5.0)

Send Feedback

The following table shows the windows messages, with a description of the purpose of each.

Programming element Description
WM_CANCELMODE This message is sent to the focus window when a dialog box or message box is displayed; this enables the focus window to cancel modes, such as stylus capture.
WM_CLOSE This message is sent as a signal that a window or an application should terminate.
WM_CREATE This message is sent when an application requests that a window be created by calling the CreateWindowEx or CreateWindow function.
WM_DESTROY This message is sent when a window is being destroyed.
WM_ENABLE This message is sent when an application changes the enabled state of a window.
WM_ERASEBKGND This message is sent by an application when the window background must be erased, for example, when a window is resized.
WM_GETTEXT This message is sent by an application to copy the text that corresponds to a window into a buffer provided by the caller.
WM_GETTEXTLENGTH This message is sent by an application to determine the length, in characters, of the text associated with a window.
WM_MOVE This message is sent after a window has been moved.
WM_QUIT This message indicates a request to terminate an application and is generated when the application calls the PostQuitMessage function.
WM_SETTEXT This message is sent by an application to set the window text.
WM_SIZE This message is sent to a window after its size has changed.
WM_STYLECHANGED This message is sent to a window after the SetWindowLong function has changed one or more of the window's styles.
WM_WINDOWPOSCHANGED This message is sent to a window whose size, position, or place in the z-order has changed as a result of a call to the SetWindowPos function or another window-management function.

See Also

Windows Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.