MFC MDI 菜单栏图标 MainFrame vs Loaded 添加的菜单图标->如何控制/编辑?

发布于 2025-01-17 01:37:11 字数 767 浏览 3 评论 0原文

当我的 MDI 应用程序打开并加载 m_wndMenuBar 并等待用户打开文件以开始文件操作时,在 MenuBar 中它具有 < code> 菜单项 如文件、视图等。

当用户加载文件时,应用程序从 IDR_MAINFRAME 切换到 IDR_TRAINS 并且 menuitems 被更新......但不知何故,在某个地方,出现一个魔术图标,这是我用于程序本身的主图标。

我想将图标添加到 IDR_MAINFRAME 但不知道如何或在哪里添加它。我在 .rc 文件中看到 mainframe.ico ,但没有看到两个菜单的相关性,为什么一个菜单有它而另一个菜单没有。

关于如何将图标添加到 IDR_MAINFRAME 的任何想法,因为我喜欢那里的图标。

IDR_MAINFRAMEIDR_TRAINS

When my MDI app opens and loads m_wndMenuBar and waiting for the user to open a file to begin file operations, in the MenuBar it has the menuitems like File, View, ....etc.

When the user loads in a file, the app switches from IDR_MAINFRAME to IDR_TRAINS and the menuitems are updated.....but somehow, somewhere, a magic icon shows up which is the main icon I use for the program itself.

I want to add the icon to the IDR_MAINFRAME but can't figure out how or where to add it. I see mainframe.ico in the .rc file but not seeing a correlation of the two menus as to why one would have it but the other not.

Any ideas on how to add the icon to the IDR_MAINFRAME as I like the icon there.

IDR_MAINFRAMEIDR_TRAINS

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文