在Windows中查找推荐的显示器分辨率 [英] Find recommended monitor resolution in Windows

查看:172
本文介绍了在Windows中查找推荐的显示器分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到Windows标记为推荐的内容分辨率,通常也是原始分辨率。在许多情况下,支持的最高分辨率也是推荐的分辨率
,但有些显示器列出的分辨率更高,甚至最终超出范围。



我尝试了几种方法,包括  EnumDisplaySettings  来自
Windows API,并使用DXGI和 
IDXGIOutput :: GetDisplayModeList  方法。
这两个列出所有支持的分辨率,但我发现无法检测建议使用哪种分辨率。例如过滤 
DXGI_MODE_DESC ::缩放
或其他成员没有帮助。


解决方案


感谢您在此处发帖。


>>我尝试了几种方法,包括来自Windows API的EnumDisplaySettings,以及使用DXGI和IDXGIOutput :: GetDisplayModeList方法。这两个都列出了所有支持的分辨率,但我发现无法检测推荐哪一个。
过滤例如DXGI_MODE_DESC :: Scaling或其他成员没有帮助。


对于这种情况,我建议您尝试以下方式。


1.致电
GetSystemMetrics
包含  SM_CXSCREEN和  SM_CYSCREEN。


2.致电
GetDeviceCaps
包含  HORZRES和VERTRES。


3.Ca使用SPI_GETWORKAREA值
SystemParametersInfo
函数。


希望这些可以帮到你。


最好的问候,


Baron Bi


How can I find what Windows marks as the recommended resolution, normally also the native resolution. In many cases the highest supported resolution is also the recommended one, but some monitors list resolutions that are higher and even end up being out-of-range.

I've tried several approaches, including EnumDisplaySettings from the Windows API, and using DXGI and the IDXGIOutput::GetDisplayModeList method. Both of these list all supported resolutions, but I find no way of detecting which one is recommended. Filtering on for example DXGI_MODE_DESC::Scaling or other members does not help.

解决方案

Hi,

thanks for posting here.

>>I've tried several approaches, including EnumDisplaySettings from the Windows API, and using DXGI and the IDXGIOutput::GetDisplayModeList method. Both of these list all supported resolutions, but I find no way of detecting which one is recommended. Filtering on for example DXGI_MODE_DESC::Scaling or other members does not help.

For this case, I suggest you try these ways below.

1. Call GetSystemMetrics with SM_CXSCREEN and SM_CYSCREEN.

2. Call GetDeviceCaps with HORZRES and VERTRES.

3. Call SystemParametersInfo function with the SPI_GETWORKAREA value.

Hope these could be help of you.

Best Regards,

Baron Bi


这篇关于在Windows中查找推荐的显示器分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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