如何检测使用的字体缩放模式? [英] How to detect font scaling mode used?

查看:75
本文介绍了如何检测使用的字体缩放模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 7自定义DPI设置窗口中,有一个名为使用Windows XP样式DPI缩放的设置。有人知道如何检测此设置是否正在使用吗?

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?

推荐答案

不确定这两个设置是否都能满足您的需求但可能会有用:

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

IsProcessDPIAware -确定当前进程是否支持每英寸点数(dpi),从而调整UI元素的大小以补偿dpi设置。

编写高DPI Win32应用程序-使用获取系统信息部分中的代码,您可能会以某种方式分辨出设置为打开还是关闭时的区别。

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.

这篇关于如何检测使用的字体缩放模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆