1 year ago
#336678
Kittmaster
MFC MDI Menu Bar Icon MainFrame vs Loaded Added Menu Icon->How to control/Edit?
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.
mfc
visual-studio-2017
icons
menuitem
mdi
0 Answers
Your Answer