Dialog Window Initial Location :: MFC

kuphryn

Senior member
Jan 7, 2001
400
0
0
Hi.

I would like to change the initial location of a dialog box (modal and/or modeless.

For example, in the program I can current working on, Windows paints the the modal dialog box in th center of the program. I have to move the dialog box to the size to see the main window. I would like to change the initial location of a dialog box.

Thanks,
Kuphryn
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
If you are using MFC, the OnInitDialog handler is where you wish to insert code to position your window. This will work for both modal and modeless dialogs