如何适应较小的笔记本电脑上的应用 [英] How to fit application on smaller laptop

查看:125
本文介绍了如何适应较小的笔记本电脑上的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在VC ++ 2010 MFC中开发了17英寸显示器上的MDI应用程序。

但现在管理层希望应用程序在10英寸笔记本电脑上运行。

应用程序不合适,它离开了屏幕。

请告诉我如何在较小的屏幕上使用应用程序

解决方案

你说你的应用程序是MDI但提到标签,观点和对话。严格来说,MDI就是所有观点。在MDI中,如果屏幕不够大,视图将滚动,但对话框不会(默认情况下)滚动,并且选项卡可能会或可能不会取决于您实现它们的方式。



==>如果您的应用程序是为更大的屏幕设计并在较小的屏幕上运行,则必须手动调整所有对话框(可能还有标签)以适应较小的屏幕,或者控件可能会在屏幕外显示,并且无法与老鼠。即使控件不在屏幕上,键盘快捷键仍然可以正常工作。任何基于视图的内容都将按原样运行,但需要用户滚动。



MessageBox()消息动态调整大小,无需修改即可自行处理。 / BLOCKQUOTE>

We have developed MDI application on 17 inch monitor in VC++ 2010 MFC.
But now management wants application to run on 10 inch laptop.
Application does not fit,it goes out of screen.
Please tell me how to fit application on smaller screen

解决方案

You said your app was MDI but mention tabs, views and dialogs. Strictly speaking, MDI is all views. In MDI, views will scroll if the screen is not large enough, but dialogs do not (by default) scroll, and tabs may or may not depending on how you implemented them.

==> If your app was designed for a larger screen and is run on a smaller screen, you will have to manually resize all dialogs (and probably tabs) to fit the smaller screen, or controls might be shown off-screen, and unavailable for use with the mouse. Keyboard shortcuts should still work even if the control is off the screen. Anything that is view based will work as is but will require scrolling by the user.

MessageBox() messages are resized dynamically and should take care of themselves without modification.


这篇关于如何适应较小的笔记本电脑上的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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