Skip to content
Search

WindowsApi:WM CLOSE

lastmod 2018-08-17created 2016-04-072 edits

Sent before a window closes; for the main window, it signals that the application is about to terminate. When this message arrives, the window has not been destroyed yet, so its destruction can be stopped midway. If a file being worked on has not been saved, or the program should not be terminated, you can ask the user to confirm with a message box or similar.

See also

Favorite site