Click to See Complete Forum and Search --> : How to change the application icon?


Anthony Zhang
April 25th, 1999, 06:40 AM
I have been trying to change the mainframe icon (MFC icon) provided by VC++ without success.
What I did was replacing the icon with another one and re-compile. It didn't work. The MFC icon
is still displayed on the mainframe and for the application exe. file. Is there any other thing I should
also change to make it work. Could somebody give me some hints. Any tips would be appreciated.

Bob Clarke
April 25th, 1999, 09:50 AM
You need to either use the resource editor and change IDR_MAINFRAME (and don't forget to change both the 32x32 image and the 16x16 image), or you can import a new icon, delete the existing IDR_MAINFRAME icon, and rename the imported one. Again, both the 32x32 and 16x16 versions of the icon need to be changed for the proper icon to display under all circumstances.

Anthony Zhang
April 26th, 1999, 11:22 PM
Hi, Bob,

Thanks a lot for your advice. It works well. I have now changed the 16x16 image
and recompiled. It worked as expected.

Regards,


Anthony