选择屏幕的宽高比 [英] Choosing Aspect ratio of screen

查看:129
本文介绍了选择屏幕的宽高比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用具有主屏幕的MFC开发桌面应用程序,即具有某些选项以使用其他服务的启动屏幕.此应用程序需要在具有不同屏幕/监视器尺寸且纵横比不同的OS上运行.我需要开始开发它,并需要决定选择哪个屏幕纵横比.有人可以建议我哪种宽高比会有用,以便它可以在不同类型的显示器/屏幕上正常工作.我知道长宽比有3种类型(4:3、16:9、16:10),但需要了解哪种才是最好的.
还需要了解纵横比的更改是否需要处理图像大小.

如果我们使应用程序全屏显示,那么我们可以通过编程方式对其进行处理.

Regds
SNI

Hi,

I am developing desktop application using MFC which has main screen i.e startup screen which has certain option avaiable to use other services. This application needs to run on different OS with different screen / monitor sizes which has different aspect ratio. I need to start developing it and need to decide which screen aspect ratio to choose. Can some body suggest me that which aspect ratio would be useful so that it can work well on different types of monitors/screens. I am aware of there are 3 types of aspect ratio (4:3, 16:9, 16:10) but need to understand which would be the best.
Also need to understand if aspect ratio changes do I need to handle images size.

If we make application full screen then can we handle it programatically.

Regds
SNI

推荐答案

我建​​议您询问当前的桌面大小,并根据它动态设置宽高比.为此,您可以例如编写如下内容:

I suggest you ask the current desktop size and set dynamically your aspect ratio depending on it. To do it you can for example write something like:

RECT rc;
GetWindowRect(GetDesktopWindow(), &rc);


这篇关于选择屏幕的宽高比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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