PDA

Click to See Complete Forum and Search --> : positioning dialog boxes..


softwareguy74
Jan 4th, 2001, 05:48 PM
Hi,

How and where do I specify where a dialog box should appear on the screen? Such as center of screen, etc.. As it is right now, they keep appearing in the upper left hand corner of the main window.

Thanks,

Dan

Vlatko
Jan 4th, 2001, 08:22 PM
In the WM_INITDIALOG window specify where to set the dialog box using SetWindowPos API. You can check the center check box in the dialog properties box to initialize the dialog box in the center of the screen.