当前位置:网站首页>Getting the return value of DPI function is always 96 | getting the return value of DPI function is incorrect | why the return value of getdpiformonitor/getdevicecaps is incorrect
Getting the return value of DPI function is always 96 | getting the return value of DPI function is incorrect | why the return value of getdpiformonitor/getdevicecaps is incorrect
2022-06-22 04:47:00 【kim-2006】
tired , Take a look at my sister and relax !

Text
No matter how you adjust the system zoom , Use GetDpiForMonitor/GetDeviceCaps obtain DPI The return value of is always 96!
After searching the Internet, there is no correct solution , It took nearly an hour to figure out the reason !
It is hereby posted for future generations !
The reason is simple , In the previous test, you set high in the properties of the program DPI Set in the “ Program DPI” As a result of , high DPI Scaling overrides can also have an effect , See the figure for details !
The solution goes without saying !

GetScaleFactorForMonitor This function is not affected by the above settings , But this function only supports WIN10/WIN11 Such as system .
边栏推荐
- Arrangement of soft test subjects in the second half of 2022
- Digital economy Wang Ning teaches you how to correctly choose short-term investment
- mysql笔记
- tinymce. Init() browser compatibility issue
- Interaction between C language and Lua (practice 2)
- 网页设计与制作期末大作业报告——动画家宫崎骏
- System V IPC and POSIX IPC
- Golang为什么不推荐使用this/self/me/that/_this
- Network Interview eight part essay of daily knowledge points (TCP, startling group phenomenon, collaborative process)
- 【故障诊断】CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace b
猜你喜欢

网页设计与制作期末大作业报告——大学生线上花店

window10无法访问局域网共享文件夹

Web design and production final assignment report -- animator Hayao Miyazaki

Odoo Development Manual (I) the second day of contact with odoo

网页设计与制作期末大作业报告——小众音乐网站

QML control types: swipeview, pageindicator

Online document collaboration: a necessary efficient artifact for office

解决Swagger2显示UI界面但是没内容

Postman document parameterization

How much does it cost to buy a fixed-term life insurance with an insured amount of 500000 at the age of 42? Is there any product recommendation
随机推荐
Odoo 开发手册(一)接触 odoo 的第二天...
Interaction between C language and Lua (practice 2)
每日一问:ArrayList和LinkedList的区别
How SQL server generates change scripts
中闽在线:以“积分”为纽带 共享线上渠道资源
What is the value of the FC2 new domain name? How to resolve to a website?
什么是论坛虚拟主机?如何挑选?
爬梯子&&卖卖股份的最佳时期(跑路人笔记)
Code example of map and entity class Interoperation
nest. Module dependency transitivity in JS practice
获取DPI函数返回值永远是96 | 获取DPI函数返回值不正确 | GetDpiForMonitor/GetDeviceCaps返回值不正确的原因
[learn FPGA programming from scratch -39]: Advanced - syntax - unit test of hardware module: simulation excitation, testbench
IDS interview questions collection data structure + penetration avalanche + persistence + memory elimination strategy + database double write + Sentinel
【使用指南】使用公共的conda创建环境
PCM data format
Cloud native enthusiast weekly: Chaos mesh upgraded to CNCF incubation project
Accurate identification of bank card information - smart and fast card binding
[details] domestic website filing process and steps
Kotlin project reports an error and lacks coroutinecontext dependency
拦截器的具体概念