以编程方式覆盖对DPI的高度关注

以编程方式覆盖对DPI的高度关注

本文介绍了以编程方式覆盖对DPI的高度关注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 10 Creator的更新版中的最终用户有一个新选项.最终用户可以在兼容性选项卡上将EXE的属性更改为替代高DPI缩放行为",并将其设置为系统(增强)".我对其进行了测试,它对于某些经典的win32应用程序非常有效.

There is a new option for the End User in Windows 10 Creator's Update Edition. The End User can change properties for an EXE on the compatibility tab to "Override High DPI Scaling Behavior" and set it to System (Enhanced). I tested it and it works well for some classic win32 apps.

我想通过API调用或清单通过代码来实现此目的.没有关于此的信息.那可能吗?从我得到的评论中,它想澄清这是一个新的CREATORS UPDATE功能,并且我特别想知道如何通过清单或代码为替代功能设置"SYSTEM(ENHANCED)"选项.

I want to to do this by code through an API call or through the manifest. There is no information on that. Is that possible?From the comment I got, it want to clarify that this is a NEW CREATORS UPDATE FEATURE and I particularly want to know how to set the "SYSTEM (ENHANCED)" choice for override feature through manifest or code.

推荐答案

我在另一篇SO帖子中找到了答案:使用VS2017增强系统DPI缩放

I found the answer in another SO post:Enhanced system DPI scaling with VS2017

正确的线索是研究在Creator's Update中得到极大改进的新GDI扩展清单.这是在系统(增强)"设置中使用的.

The correct clue is to investigate the new GDI Scaling manifest that is vastly improved in Creator's Update. That is used in System (Enhanced) setting.

所有答案或评论都没有.他们不断提到旧文章.此外,有人将这个问题标记为否定:(可悲.

None of the answers or comments came close. They kept referring to old articles. Moreover, someone marked the question negative:( Sad.

这篇关于以编程方式覆盖对DPI的高度关注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 02:25