Custom icon for an app
-
HI all, When creating an MFC (SDI / MDI). How do I get the app (EXE file) to display an icon of my choice in the directory area, instead of the annoying default IDR_MAINFRAME? Also, the with associated document, should I decided to serialise them. Your guruship is most welcome. Alton
-
HI all, When creating an MFC (SDI / MDI). How do I get the app (EXE file) to display an icon of my choice in the directory area, instead of the annoying default IDR_MAINFRAME? Also, the with associated document, should I decided to serialise them. Your guruship is most welcome. Alton
Edit the two default icons presented in the Resources tab. There should already be one for the EXE and another for the document. If you want them to be different for some reason, then add additional icons to the resources and track down where they are loaded and assigned. Override those functions to return the icons of your choosing loaded from the resources.
-
Edit the two default icons presented in the Resources tab. There should already be one for the EXE and another for the document. If you want them to be different for some reason, then add additional icons to the resources and track down where they are loaded and assigned. Override those functions to return the icons of your choosing loaded from the resources.
Tried that, It works for the frame when app is up and running. I've also rename say IDI_ICON1 to IDR_MAINFRAME and puts up a stubborn resistance. Thanks, Blake anyway. Alton
-
HI all, When creating an MFC (SDI / MDI). How do I get the app (EXE file) to display an icon of my choice in the directory area, instead of the annoying default IDR_MAINFRAME? Also, the with associated document, should I decided to serialise them. Your guruship is most welcome. Alton
Explorer shows the icon with the lowest resource ID, so create a new icon and give it ID 1 (or anything lower than
IDR_MAINFRAME
). --Mike-- LINKS~! Ericahist updated! | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD -
HI all, When creating an MFC (SDI / MDI). How do I get the app (EXE file) to display an icon of my choice in the directory area, instead of the annoying default IDR_MAINFRAME? Also, the with associated document, should I decided to serialise them. Your guruship is most welcome. Alton
The easiest way to do this is to simply replace the two
.ico
files.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow