Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Small Icon is Wrong

Status
Not open for further replies.

dave755

IS-IT--Management
May 3, 2001
69
US
I Have created an MFC application with VC++.Net starting with App Wizard.

I removed the default "MFC" icon from the project and inserted two icons with my own artwork.

When viewing the EXE in Windows Explorer, if I select "Large Icons", my artwork is shown. However, when I select "Small Icons", "List", or "Details", the default "MFC" icon is displayed. This behavior also occurs when the application is displayed on the task bar.

The MFC icon is not in the EXE file according to any tool that I have been able to use. Where could it be coming from and how can I get the appropriate icon to display?
 
I am also having problems with changing the default icons windows icons. Did you figure out what the problem was?

Like yourself I have changed the bit maps with my own art work but they are still showing on the title bar as being the default icon.
 
Would you mind showing the code that assigned the icon to your window? And, to maybe be one step ahead of that: LoadIcon can only load the large icon of your resource file. To set the small icon attribute, you'll have to load the icon using the LoadImage function.
Greetings,
Rick
 
>> I removed the default "MFC" icon from the project

define that more clearly

I have always just edited the default icon rather than trying to "remove" it. I would have to try to repeat your steps and reproduce the behavior and i don't know what the steps are.

-pete
 
You have different sizes for the icons. If you just create the "standard 32x32" thats all you get. You need to select the different sizes as well. I believe 16x16 is the size you are refering to.

Matt
 
Matt,

If that's it i'll buy you a beer! I'll even drink it for you as well LOL [cheers]

-pete
 
Thanks Guys,

It was a icon size problem. I found the offending icon under the Right mouse menu withing the icon editor. [Current icon types]. There were two icon types. One was the stardard MFC imprint.
[32x32 16 colour]
[32x32 256 colour]

Cheers
Mary

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top