How to replace the default wxWidget Icon ? Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
manianis
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Jan 15, 2007 11:00 am

How to replace the default wxWidget Icon ?

Post by manianis » Mon Feb 19, 2007 7:39 pm

I don't know how to change the default icon in wxWidgets Applications ? Help me please. I'm using MSW wxWidgets 2.8.0 Unicode Release.

HeReSY
Earned some good credits
Earned some good credits
Posts: 120
Joined: Fri Sep 17, 2004 8:58 pm
Location: Germany

Post by HeReSY » Mon Feb 19, 2007 8:41 pm

Add a resource file to your project.

resourcefile.rc

Code: Select all

name ICON "icon_name.ico"
HeReSY

manianis
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Jan 15, 2007 11:00 am

Post by manianis » Tue Feb 20, 2007 7:06 am

HeReSY wrote:Add a resource file to your project.

resourcefile.rc

Code: Select all

name ICON "icon_name.ico"
HeReSY
That's all. I'll test it... Thanks.

User avatar
tierra
Site Admin
Site Admin
Posts: 1343
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Post by tierra » Tue Feb 20, 2007 6:11 pm

Make sure you include that before including the standard wxWidgets resources since Windows uses the first icon included in your resources.

Post Reply