MFC对话失控 [英] MFC Dialogue get out of window

查看:89
本文介绍了MFC对话失控的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了1个MFC应用程序,其中有许多垂直排列的控件,应用程序在我的桌面上正常运行,但其他笔记本电脑和台式机没有外观和感觉良好,它垂直传播而不是所有控件都是显示和用户无法进行任何操作!!

请给我准确的解决方案

解决方案

如果我理解正确,你有一台大显示器并做了一个简单的UI设计考虑到这一点,当其他人在他们的机器上用较小的屏幕使用你的软件时,一切都崩溃了......





最佳解决方案

找出应用程序的最小屏幕尺寸要求,并(重新)设计用户界面以使用该约束:

- 减少控件的数量(你真的需要那么多控件吗?)

- 将控件移动到子窗口(例如,有一个高级按钮,显示高级 或者更少儿童对话框中的sed控件)

- 使用不同类型的控件;

- 使用PropertySheet将控件分成不同的页面。





更糟糕的是更糟糕的解决方案(IMO):

将对话框的控件放在可滚动的窗口中(在对话框中),让用户滚动以访问控件。

I have developed 1 MFC Application in which there are lot of controls which are arranged vertically, & application runs properly on my desktop,but other laptops & desktop does not have look & feel good,it spread vertically & not all controls are displayed & user unable to do any operation!!
Please give me exact solution

解决方案

If I understand correctly, you have a large monitor and did a simple UI design taking that into account and when other people used your software on their machine with smaller screens, all hell broke loose...


Best solution:
Figure out the minimal screen size requirement for your application and (re)design the User Interface to work with that constraint:
- reduce the number of controls (do you really need that many controls ? )
- move controls into sub-windows ( for example, have an "advanced" button that shows "advanced" or less used controls in a child dialog)
- use different kind of controls;
- use a PropertySheet to split controls into different pages.


The Worse of the Worse solution (IMO):
Put the controls of the dialog in a scroll-able window (in the dialog) and let the user scroll to have access to the controls).


这篇关于MFC对话失控的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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