mfc >> Changing Document Icons

by S L Smith » Tue, 25 Nov 2003 04:41:40 GMT


Hi-
I've edited the document icon in my MFC program. It works fine in the
program, but the file icon in the File Explorer Shell never changes.
I've checked my file in Resource Hacker and everything is fine. But I
still get the old icon when I save a document.

How can I force the shell to use my new document icon? -spencer



mfc >> Changing Document Icons

by Ali R. » Tue, 25 Nov 2003 05:15:30 GMT


Make sure that you have change the Icon for all the sizes and color
combinations.
In the resource editor, open the icon, on the menu there should be an Image
menu. At the very bottom it will let you see all the Devices, and it will
let you select, add, and delete them.

Ali R.








mfc >> Changing Document Icons

by S L Smith » Tue, 25 Nov 2003 06:18:17 GMT


I already changed all the icon formats. Like I said, I even double
checked with Resource Hacker to make sure the stubborn icon wasn't
there. So it must be coming from the shell somehow, it's definately not
in the program.
Thanks anyways, Ali. I appreciate you trying to help.








Changing Document Icons

by Frank Hickman » Tue, 25 Nov 2003 07:33:25 GMT

What are the icon sizes? I have found that by default, it will attempt to
use the 16x16 size then the 32x32 one but the 48x48 size would only be used
if there was not a 16x16 or 32x32 of any color depth and even then it was
slightly mis-drawn because the 48x48 is scaled down, not cropped.

HTH
--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.





Image
will






Changing Document Icons

by S L Smith » Tue, 25 Nov 2003 07:58:02 GMT

Standard MFC sizes. But the problem is the icon I see representing the
document has nothing to do with the program that made it. It's not
cropped or mis-drawn... it's the OLD icon. An icon that is no longer
contained in the program. So WinXP must be associating an icon with the
document type. But how do I update that setting?

Thanks though, Frank. I appreciate you trying to help. -s






Similar Threads

1. Change Application Icon [ Output file icon]

Hi,

I have created an form based application in c# having some GUI. I have also 
added localization support to it due to GUI changes for different 
customers.Now the issue I have the Application icon can be set only through 
Property page in common properties as is the Output file name. But i need 
different icons (output file) for different customers and I have same code 
base for all. As far as form icons are concerened they are obtained from 
respective resource files. How can I chanage the Application icon on the 
basis of Build settings. Is it possible?

Thx.
Avnish.

2. icon changes with change of extension