I have a wizard that runs and looks beautiful (if I say so myself) the problem is on Windows XP this dialog gets severly messed up when the user changes the DPI of the font on their screen. It seems that the control it self is being moved. I honestly do not even know where to start with this.
Asked
Active
Viewed 637 times
2
-
1Sizes in dialogs are based on dialog units, which are affected by the DPI setting. – Jerry Coffin May 25 '12 at 22:30
-
So how can I make a dialog that will size correctly given all of the DPI's? – Matthew Sanford May 25 '12 at 22:32
-
Usually you use [`MapDialogRect`](http://msdn.microsoft.com/en-us/library/windows/desktop/ms645502.aspx) to get DPI-independent coordinates. – Jerry Coffin May 25 '12 at 22:47
1 Answers
1
You need make the dlalog's components aware of the DPI setting and calcualte the space and lay out needed. WPF does this automatically.
Here is an example on SO : How to control the font DPI in .NET WinForms app
Have a read of Writing High-DPI Win32 Applications

Community
- 1
- 1

Preet Sangha
- 64,563
- 18
- 145
- 216