Code::Blocks Forums

User forums => Help => Topic started by: bfr on July 01, 2007, 05:38:24 pm

Title: Set Program Icon
Post by: bfr on July 01, 2007, 05:38:24 pm
How would I set the program's icon (not the window's) in Code::Blocks?  The one that the user would click on to execute the program.
Title: Re: Set Program Icon
Post by: raph on July 01, 2007, 06:09:00 pm
You have to include it in your resource (.rc) file.
The first icon in the resource section (sorted by name I think) will be your .exe icon.
Just have a look at the resource file of the wizard generated wxWidgets sample.

Regards
raph
Title: Re: Set Program Icon
Post by: lubos on July 01, 2007, 09:17:24 pm
this line in .rc file should work:

Icon ICON icon.ico

where third param is your icon file
Title: Re: Set Program Icon
Post by: bfr on July 02, 2007, 08:58:20 pm
OK, it worked, thanks.  :)