Can I affect the process?
I have an application built in .NET 3.5 / VS2008. I have embedded multiple icons into the app with a win32 .res file. This is done in the Properties box for the Project in VS2008 - instead of specifying an .ico file, tick the box to specify a .res file. In the .res file you can have multiple icons. See here for what I mean.
Each icon includes a 256x256xRGB (PNG Cmopressed) "Vista grade" image, a 256x256x32bit image, and the usual cascade of 48x48, 32x32, and 16x16 images in various color combos.
If I view the resulting exe in Explorer, I see the big beautiful 256x256 Vista images.
I can then associate a file extension to my app, using the right click > "Open With..." > Set Default Program clickstream in Vista's Explorer. But the icon displayed next to the document is then a small version of the app icon, overlayed on top of what looks like a white sheet of paper with a folded corner.
The result is that the original image is waaaay to small to be visible, when it is shown in "small icon" version. It looks terrible.
I know it is possible to completely omit the folded piece of paper, or at least to get a much larger image overlayed on it. The icon for a C# file, for example, has a folded sheet of paper, but the C# emblem is large and visible. How can I get this? The icon for .zip files when WinZip 12 is installed, is large and visible, and has no folded sheet of paper.
Is the icon-for-documents different than the icon-for-the-application? Is there something in my app that I have to do in order to register an Icon that Vista will use for documents associated to my app?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…