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 message is sent when a window is being destroyed. It is sent to the window procedure of the window being destroyed after the window is removed from the screen.
This message is sent first to the window being destroyed and then to the child windows, if any, as they are destroyed. During the processing of the message, it can be assumed that all child windows still exist.
WM_DESTROY wParam= 0; lParam= 0;
Return Values
An application should return zero if it processes this message.
Remarks
In Windows CE, DefWindowProcdoes not automatically call PostQuitMessagein its handling of WM_DESTROY.
If the window being destroyed is part of the clipboard viewer chain (set by calling the SetClipboardViewerfunction), the window must remove itself from the chain by processing the ChangeClipboardChainfunction before returning from the WM_DESTROY message.
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
DestroyWindow, PostQuitMessage, WM_CLOSE