I have a MFC app that has default MFC DPI support: it is high DPI aware, but not per-monitor DPI aware. Windows 10 version 1703 added support for System (enhanced) DPI scali
Add the gdiScaling setting to your application's manifest to tell Windows to apply GDI scaling on all monitors.
GdiScaling.manifest
in your project.
true
GdiScaling.manifest
. This will merge your GDI scaling settings into the rest of the generated manifest.When you build, you will get a warning about Microsoft not having its act together, but you already knew that. :-) The exact text of the warning is this:
GdiScaling.manifest : manifest authoring warning 81010002: Unrecognized Element "gdiScaling" in namespace "http://schemas.microsoft.com/SMI/2017/WindowsSettings".
Fortunately, Windows doesn't care and recognizes the setting anyway.