Jump to content
  • Advertisement


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


Windows Message Pump Question

This topic is 5657 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.

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!