如何在vc ++ mfc中链接2种形式 [英] how to link 2 forms in vc++ mfc
本文介绍了如何在vc ++ mfc中链接2种形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尊敬的先生/女士,
我对VC ++不太熟悉.我正在vc ++中做一个有2种形式的项目.在form1上我按下了一个按钮.我想在单击第一种形式的按钮时打开第二种形式.请any1告诉我如何在vc ++ 6.0中做到这一点吗?尽快需要它. :(
预先感谢.
Sonal.
Respected Sir/Mam,
I am not much familiar with VC++. I am doing a project in vc++ where I have 2 forms .On form1 i have taken a push button .I want to open the second form on click of button of 1st form.Please can any1 tell me how to do that in vc++ 6.0? Need it asap. :(
Thanking in advance.
Sonal.
推荐答案
您拥有的表单"是对话框?还是CFormView?
如果是CDialogs,您希望将它们作为Modal对话框还是Modalless对话框?
假设模态对话框类似于...
CDialog dlg1;
int nDlgRet = dlg1.DoModal();
如果没有,请给您更好的解释.
The "forms" you have are Dialogs? or CFormView?
If CDialogs, do you want them as Modal or Modalless dialogs?
Supposing a Modal dialog would be something like...
CDialog dlg1;
int nDlgRet = dlg1.DoModal ();
If not... explain you better.
这篇关于如何在vc ++ mfc中链接2种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文