当我们最大化对话框时,如何在窗口对话框中调整控件 [英] how to fit controls in windows Dialog when we maximize the dialog
本文介绍了当我们最大化对话框时,如何在窗口对话框中调整控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用MFC开发了一个基于对话框的应用程序,我有一个以上的控件。
当我最大化对话框时,我希望适合所有控件的客户端区域。
如何实现这个使用
I have been developed an dialog based application using MFC and i have more then one controls.
When i maximized the dialog , i want to fit in the client area for all controls.
How to implemented this using
void CMFC1Dlg::OnSize(UINT nType, int cx, int cy)
{
CDialogEx::OnSize(nType, cx, cy);
}
}
推荐答案
你必须手动移动控件。
有几个调整大小 CodeProject上提供的库
查看 http ://www.codeproject.com/KB/dialog/#Control+Positioning [ ^ ]
You have to move the controls manually.
There are a few "resize" libraries available on CodeProject
Have a look at http://www.codeproject.com/KB/dialog/#Control+Positioning[^]
这篇关于当我们最大化对话框时,如何在窗口对话框中调整控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文