如何使用 Visual Studio 2008 在我的程序中添加菜单栏?
我设法通过单击并向我想要的每个菜单项写入文本来在菜单编辑器中创建菜单栏。
我看不到任何按钮来获取将菜单包含在我的程序中的代码。
我怎样才能让这个菜单工作?
C++
I managed to create the menubar in the menu editor by clicking and writing text to each menu item i wanted.
I cant see any button to get the code to include the menu in my program.
How i can get this menu working?
C++
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于你使用的是纯win32 api还是MFC。但作为一个新手,我首先假设您使用的是 win32 api。做一个简单的谷歌搜索 forgers win32 教程。
只是为了让您满意,编辑 main.cpp 文件并更改 lpszMenuName 部分下的 WNDCLASSEX 结构。
你看,你就是不能继续使用 Visual Studio 的代码生成功能。你必须理解菜单背后的代码,这并不难。否则你永远无法理解更高级的功能。无意冒犯,但这些事情在互联网上随处可见。
depends on whether you are using pure win32 api or MFC. But being a newbie i will first assume that you are using win32 api. do a simple google search for forgers win32 tutorials.
just to satisify you, edit the main.cpp file and change the WNDCLASSEX structure, under the lpszMenuName part.
See, you just cant keep using visual studio's code generation features. You have to understand the code behind the menu, and it is not hard. other wise you will never understand the more advanced features. No offence but these things are covered all over the internet.