如何在对话框中添加菜单控件 [英] How to add the menu control in dialog box
本文介绍了如何在对话框中添加菜单控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
请告诉我如何在对话框中添加菜单项.
hello,
please tell me how to add the menu item in dialog box.
推荐答案
对于基于对话框的MFC应用程序,您可以添加右键单击后会出现的上下文菜单. > 请遵循以下教程.
http://www.functionx.com/visualc/howto/contextmenu.htm [ ^ ]
To dialog based MFC application you can add a context menu which comes on right clicking.
follow the below tutorial.
http://www.functionx.com/visualc/howto/contextmenu.htm[^]
如果在谈论对话框中的主菜单,
1.创建菜单资源(IDR_MYMENU).
2.转到资源编辑器中的对话框属性.
3.在菜单属性字段中,输入您的菜单ID(IDR_MENU).
If you are talking about a main menu in dialog then,
1. Create your menu resource(IDR_MYMENU).
2. go to dialog properties in resource editor.
3. in the menu property field give your menu id (IDR_MENU).
这篇关于如何在对话框中添加菜单控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文