Click here to Skip to main content
15,990,892 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a dialog based application and have several buttons n which dialog gets created. They are few dialogs that are appearing in the center of my parent dialog but some of the them appearing at different location. Also when I am changing screen resolution most of the dialogs are not appearing on the center. I have used CenterWindow(GetDesktopWindow) but using this also dialogs are appearing on the center of parent dialog. Please suggest whether I need to set parent dialog handle to child window. I am using VS2010 MFC.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900