Jump to content
  • Advertisement


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


Windows Message Pump Question

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!