简体   繁体   English

相当于Qt QVBoxLayout小部件的MFC

[英]MFC equivalent of Qt QVBoxLayout widget

I'd like to know how to position MFC controls in the dialog so that they stretch to fill free space in the dialog. 我想知道如何在对话框中放置MFC控件,以便它们可以拉伸以填充对话框中的可用空间。 In Qt it is possible to nest QVBoxLayout and QHBoxLayout widgets, I'm looking for something similar in MFC. 在Qt中,可以嵌套QVBoxLayout和QHBoxLayout小部件,我正在MFC中寻找类似的东西。

Additionally I'd be interested to know if there exists an MFC control similar to the Qt QTableWidget that can have other widgets nested in each cell. 另外,我想知道是否存在类似于Qt QTableWidget的MFC控件,该控件可以在每个单元格中嵌套其他控件。

Not difficult to find on the web.. Resizable layouts: http://www.codeproject.com/KB/dialog/WndResizer.aspx 在网上很难找到。可调整大小的布局: http : //www.codeproject.com/KB/dialog/WndResizer.aspx

Not sure on the grid control with widgets in it, maybe this will do it with some modifications: http://www.codeproject.com/KB/miscctrl/gridctrl.aspx 不确定在其中带有小部件的网格控件上,也许这样做会做一些修改: http : //www.codeproject.com/KB/miscctrl/gridctrl.aspx

As far as I know, there is no layout managers in MFC. 据我所知,MFC中没有布局管理器。 A big lack indeed... 确实有很大的不足...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM