I’ve added an icon resource to my program. Unfortunately, it’s a 16×16 icon meant as a visual aid on a button, and now it’s set as the executable’s main icon. Obviously, this looks terrible.
Is it possible to add a resource while retaining the EXE’s icon as the Windows default?
I’m using Visual Studio 2010, if that helps.
It looks like your 16×16 icon is the only icon resource in your application, or the one with the smallest identifier. In that case, both Explorer (for its file lists) and the window manager (for the window’s title bar) will default to that icon.
You should add another icon to your application, with an id less than the id of your 16×16 icon, so it will become the default icon. If you want to use the default application icon, you can get it from the Visual Studio Image Library.