Advertisement

More Dialog Woes..

Started by July 25, 2001 12:25 AM
2 comments, last by Galileo430 23 years, 6 months ago
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..
------------------------------------------------------------I wrote the best video game ever, then I woke up...
I don''t know MFC.
But I can help you the center thing.
You can use the
DS_CENTER 
in the style propertise of the dialog box. This will cause the window to be centered when it is loaded.

HTH



Advertisement
Nope that just centers it in the center of the screen..
------------------------------------------------------------I wrote the best video game ever, then I woke up...
what do you want it centered in relation too then?
If at first you don't succeed, redefine success.

This topic is closed to new replies.

Advertisement