如何获得Win Explorer以完整尺寸显示MFC Doc/View文档32x32 Icon ...? [英] How can I get Win Explorer to show my MFC Doc/View document 32x32 Icon at full size...?

查看:70
本文介绍了如何获得Win Explorer以完整尺寸显示MFC Doc/View文档32x32 Icon ...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取Win Explorer以完整尺寸显示MFC Doc/View文档32x32图标?

IE:在带有折叠角文档"轮廓的白色背景上不会减少...?我正在使用C ++和Visual Studio.似乎MFC体系结构会自动创建此缩小格式的图标,就像使用记事本和许多其他应用程序一样.但是许多应用程序(例如Adobe,Word等)设法使图标全尺寸显示,而没有该"doc"轮廓.如何完成...?

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...?

推荐答案

这不是Explorer,而是Shell子系统.如果操作正确,则使用Shell API的每个软件产品都将正确显示图标.

您只需要创建一个正确的图标并至少在两个地方使用它:应用程序图标和主窗口图标(原则上,不同窗口的图标和应用程序图标可以不同).

该图标是多页资源.在一个ICO文件中,您可以放置​​多个不同大小的图像. Shell通常假定您实现了16x16和32x32图像,否则Shell会尝试对图像进行重新采样以使Shell UI具有看起来难看的结果.

我建议使用免费软件IcoFX:
http://en.wikipedia.org/wiki/IcoFX [ http://icofx.ro/ [ ^ ].

—SA
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


这篇关于如何获得Win Explorer以完整尺寸显示MFC Doc/View文档32x32 Icon ...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆