• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Dialog Window Initial Location :: MFC

kuphryn

Senior member
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
 
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
 
Back
Top