本文介绍了在MFC中显示对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在研究SDI View Architecture MFC应用程序,当用户单击帮助"时,我需要显示一个外部对话框.例子.到目前为止,我已经准备好对话框,并在示例按钮"上添加了事件处理程序,并添加了

Hi I''m working on an SDI View Architecture MFC application and I need to display an external dialog box when the user clicks Help -> Example. So far i have my dialog box ready and I added an event handler on the Example ''button'' and added

<pre lang="cs"><br />
void CtestSDIApp::OnHelpExample()<br />
{<br />
    rulesDlg testdlg;<br />
    testdlg.DoModal();<br />
}</pre><br />


我似乎看不出问题出在哪里,但是那行不通.它确实可以编译,但是仍然可以.

关于在MFC中显示对话框最简单的方法有什么建议吗?


I don''t seem to see where the problem is, but it doesn''t work. It does compile but yeah still.

Any suggestion on what''s the easiest way to display a dialog box in MFC?

thanks a lot!

推荐答案




这篇关于在MFC中显示对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 05:10