How to get and set Display DPI setting in VC++?
Posted on 2005-05-04
From Control panel/Display/Settings tab/Advanced button, users can change the Display DPI setting. The fonts I use in the dialog boxes only shows up nicely when 'Normal Size (96 DPI)' is selected. Higher DPI setting will make the fonts too big for the dialog box. I am not sure what is the best way to solve this type of problem programmatically. I thought at least I should find a way to get the setting value and remind users to use 96 DPI (or if possible set it to 96 DPI in the program). But how to do it? Any suggestions or other approaches?