如何使用MFC创建复合控件 [英] How to create a composite control using MFC
本文介绍了如何使用MFC创建复合控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
问候!!!
如何在MFC中创建复合控件.我已经在ATL中看到此选项,但是在MFC中找不到任何类似的内容
基本上,我想创建一个具有对话框的控件.此对话框将包含按钮和其他子控件.我想使用资源编辑器创建此对话框.
提前谢谢.
问候.
Hi all
Greetings!!!
How to create a composite control in MFC. I have seen this option in ATL but couldnt find anything similar in MFC
Basically I want to create a control having a dialog. This dialog box will contain button and other child controls. I want to create this dialog using the resource editor.
Thanks in advance.
Regards.
推荐答案
您只需基于MFC控件/对话框派生自己的类.它们是面向对象的,因此在控件中添加控件实际上无非就是在另一个对象中添加对象.
You just have to derive your own classes based on the MFC controls/dialogs. They''re object oriented, so adding controls within a control is really nothing more than adding an object within another object.
这篇关于如何使用MFC创建复合控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文