How to detect font scaling mode used?

徘徊边缘 提交于 2019-12-21 19:54:54

问题


In the Windows 7 "Custom DPI Setting" window, there is a setting called "Use Windows XP style DPI scaling". Does anyone know how to detect if this setting is in use?


回答1:


Not sure if either of these will give you what you want but might be useful:

IsProcessDPIAware - Determines whether the current process is dots per inch (dpi) aware such that it adjusts the sizes of UI elements to compensate for the dpi setting.

Writing High-DPI Win32 Applications - Using the code in the Getting System Information section you could probably tell the difference in some way when the setting is on vs off.



来源:https://stackoverflow.com/questions/3595730/how-to-detect-font-scaling-mode-used

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!