如何使用 Visual Studio 2008 在我的程序中添加菜单栏?

发布于 2024-08-22 01:27:24 字数 113 浏览 2 评论 0原文

我设法通过单击并向我想要的每个菜单项写入文本来在菜单编辑器中创建菜单栏。

我看不到任何按钮来获取将菜单包含在我的程序中的代码。

我怎样才能让这个菜单工作?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暮凉 2024-08-29 01:27:24

取决于你使用的是纯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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文