Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick easy question about Icons

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
How can I set my program to use an Icon I want instead of the MFC standard Icon. I'm talking about the icon that is displayed with the generated .exe file. Thanks for any help.

Niky Williams
NTS Marketing
 
Niky,

Edit the default Icons in the resource editor.

Good luck
-pete
 
I've tried that, but I can't get it to work right. I've got an Icon I want to use and I can load it up and save it. It will show up in the system bar at the top of my program, but the MFC default Icon still shows up to portray the .exe file. I'm doing something wrong. Thanks for your help.


Niky Williams
NTS Marketing
 

If you delete the IDR_MAINFRAME icon (default icon) when you create a new project, import the icon you want and label it IDR_MAINFRAME it will become the icon for your .exe and top bar. Quick and easy.

Check your .rc file. Should have the following line:

IDR_MAINFRAME ICON DISCARDABLE "res\\iconname.ico"

Make sure that "res\\iconname.ico" is the actual icon you want by checking the directory.

Brother C
 
Awesome...thank you so much for your help!!!


Niky Williams
NTS Marketing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top