Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
WM_CLOSE
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

This message is sent as a signal that a window or an application should terminate.


WM_CLOSE wParam = 0; 
    lParam = 0; 

An application should return zero if it processes this message.

Default Action

The DefWindowProc function calls the DestroyWindow function to destroy the window.

An application can prompt the user for confirmation, prior to destroying a window, by processing the WM_CLOSE message and calling the DestroyWindow function only if the user confirms the choice.

Headerwinuser.h
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker