Click here to Skip to main content
15,888,251 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How can I get Win Explorer to show my MFC Doc/View document 32x32 Icon at full size...?

IE: not reduced on a white background with "folded-corner document" outline...? I'm using C++ and Visual Studio. It seems the MFC architecture creates this reduced-form icon automatically, as it does with Notepad and many other apps. But many apps (eg Adobe, Word, etc) manage to get their icons full size, without that "doc" outline. How is that done...?
Posted

1 solution

This is not an Explorer but the Shell subsystem. If you do it correctly, every software product using Shell API will show icons correctly.

All you need is to create a correct icon and use it at least in two places: application icon and main windows icon (in principle, the icons for different windows and application icon can be different).

The icon is a multi-page resource. In a single ICO file you can place several images of different sizes. Shell normally assumes you implement 16x16 and 32x32 images, otherwise Shell will try to re-sample the images to fit Shell UI with results which can look ugly.

I would recommend using freeware IcoFX:
http://en.wikipedia.org/wiki/IcoFX[^],
http://icofx.ro/[^].

—SA
 
Share this answer
 
Comments
Niklas L 2-May-11 15:46pm    
This should have been marked as an answer by OP. My 5.
Sergey Alexandrovich Kryukov 2-May-11 16:00pm    
Thank you Niklas,
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900