Archived

This topic is now archived and is closed to further replies.

Windows Message Pump Question

This topic is 5375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

DefWindowProc calls DestroyWindow when it receives WM_CLOSE. You can easily override that, to popup a Yes/No message box for example. DestroyWindow sends WM_DESTROY and WM_NCDESTROY (you don''t really need that one). WM_CLOSE is sent when the close button of a window is pressed or when ALT+F4 is pressed.
Normally, you call PostQuitMessage in the WM_DESTROY handler of your main window.

----------------
Blaster
Computer game programmer and part time human being
Strategy First - http://www.strategyfirst.com
BlasterSoft - http://www.blastersoft.com

Share this post


Link to post
Share on other sites