如何在CMFC功能区应用程序中显示对话框 [英] How to Show a Dialog in CMFC Ribbon Application
本文介绍了如何在CMFC功能区应用程序中显示对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因为我无法找到任何有意义的问题解决方案所以它在这里发布了问题。我是 CMFC功能区应用程序
的新手,我必须在触发某个事件时显示一个对话框。
- 我是否只需要对话框ID?
- 这样做的正确方法是什么?
任何帮助将不胜感激。
Hi,
Since I am unable to find any meaningful solution of my problem so it made post the question here. I am new to CMFC Ribbon Application
and I have to show a dialog when some event is triggered.
- Do I need the dialog ID only?
- What is the proper way of doing this?
Any help will be appreciated.
推荐答案
起初你的应用程序中需要一些消息处理程序。注意:必须从应用程序中调用该函数(或者在主线程中调用该函数,否则它将崩溃)。
比你需要一个对话框:最简单的方法是使用资源编辑器创建一些并使用向导创建一个包装所有的类。我希望视频能够解释所有细节。
At first you need some message-handler in your app. Notice: The function must get called from in the app (or in the main thread else it will crash).
Than you need a dialog: the easiest way is to create some with resource editor and use the wizard to create a class to wrap all up. I hope this video explains all details.
这篇关于如何在CMFC功能区应用程序中显示对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文