MFC MDI 菜单栏图标 MainFrame vs Loaded 添加的菜单图标->如何控制/编辑?
当我的 MDI
应用程序打开并加载 m_wndMenuBar
并等待用户打开文件以开始文件操作时,在 MenuBar
中它具有 < code> 菜单项 如文件、视图等。
当用户加载文件时,应用程序从 IDR_MAINFRAME
切换到 IDR_TRAINS
并且 menuitems
被更新......但不知何故,在某个地方,出现一个魔术图标,这是我用于程序本身的主图标。
我想将图标添加到 IDR_MAINFRAME
但不知道如何或在哪里添加它。我在 .rc
文件中看到 mainframe.ico
,但没有看到两个菜单的相关性,为什么一个菜单有它而另一个菜单没有。
关于如何将图标添加到 IDR_MAINFRAME
的任何想法,因为我喜欢那里的图标。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论