Jump to content
  • Advertisement


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


More Dialog Woes..

This topic is 6352 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

Well, I got the dialog to show and do all my loading (horray for me, and thanks again!). For those who didn''t read post one Two problems. First, The dialog isn''t centered.. And I don''t know the command to move it to the center.. Second, When I close the dialog with dlgWaiting.EndDialog(0); dlgWaiting.ShowWindow(SW_HIDE); dlgWaiting.DestroyWindow(); I get "Warning: calling DestroyWindow in CDialog::~CDialog -- OnDestroy or PostNcDestroy in derived class will not be called." and I lose focus of every app..

Share this post

Link to post
Share on other sites
I don''t know MFC.
But I can help you the center thing.
You can use the
in the style propertise of the dialog box. This will cause the window to be centered when it is loaded.


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!