Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
Set Program Icon
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Set Program Icon (Read 3183 times)
bfr
Multiple posting newcomer
Posts: 17
Set Program Icon
«
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.
Logged
raph
Almost regular
Posts: 242
Re: Set Program Icon
«
Reply #1 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
Logged
lubos
Almost regular
Posts: 131
Re: Set Program Icon
«
Reply #2 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
Logged
bfr
Multiple posting newcomer
Posts: 17
Re: Set Program Icon
«
Reply #3 on:
July 02, 2007, 08:58:20 pm »
OK, it worked, thanks.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
Set Program Icon