I have a Windows application which I want to look good at high DPI monitors. The application is using DEFAULT_GUI_FONT in lots of places, and the font created this way doesn't scale correctly.
Is there any simple way to fix this problem with not too much pain?
you need get NONCLIENTMETRICS
by SystemParametersInfo
(SPI_GETNONCLIENTMETRICS
,) and then use it LOGFONT data, for create self font. or you can query for SystemParametersInfo
(SPI_GETICONTITLELOGFONT
) and use it