如何在对话框中插入对话框? [英] How to Insert a dialog in a dialog?
问题描述
我所有的朋友!
我想使用MFC制作数据库客户端界面。
现在我遇到了问题,如何在对话框中插入对话框?
我想实现以下功能:
1.制作一个主对话框,并在主对话框中添加一个菜单 - - 我可以
2.菜单中有两个选项,一个是option_1,另一个是option_2---我可以
3.当我按option_1,弹出一个对话框,它嵌入在主对话框的指定区域。
当我按下option_2时,在同一指定区域弹出一个对话框。 ---这是我的问题。怎么做?
非常感谢你!
祝你有愉快的一天!
Hi,all my friends!
I want to make a database client interface using MFC.
Now i have a problem,how to insert a dialog in a dialog?
I would like to achieve the following function:
1.Make a master dialog, and add a menu in the master dialog --- i can
2.There are two options in the menu,one is "option_1",another is "option_2" --- i can
3.When i push "option_1",popup a dialog,it is embedded in a appointed area of the master dialog.
when i push "option_2",popup a dialog in the same appointed area. --- it is my problem. how to do it?
Thank you very much!
Have a nice day!
推荐答案
以下是我的解决方案:
1.创建一个孩子对话框
2.为子对话框添加一个类
3.
The following is my solution:
1.create a child dialog
2.add a class for the child dialog
3.
m_datasearch_dlg.Create(IDD_RF_DATASEARCH_DIALOG,this);
m_datasearch_dlg.ShowWindow(SW_SHOW);
这篇关于如何在对话框中插入对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!