问题
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