News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Set Program Icon

Started by bfr, July 01, 2007, 05:38:24 PM

Previous topic - Next topic

bfr

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.

raph

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

lubos

this line in .rc file should work:

Icon ICON icon.ico

where third param is your icon file

bfr

OK, it worked, thanks.  :)