如何改变的图标的特定类型的一个单一的文件? [英] How to change an icon for one single file of the specific type?

查看:176
本文介绍了如何改变的图标的特定类型的一个单一的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何更改图标使用注册表和文件类型关联整个文件类型。
我也知道如何更改使用Desktop.ini文件一个单独的文件夹的图标。



我的问题是,是否有可能的更改对于一个特定的文件图标,让我们说one.doc文件?



我不能找到一种方法做,但一些上传程序似乎能够改变而这种类型的所有其他文件留在目前上传的文件的图标,用标准的图标。 ?他们怎么办呢

我可以接受任何语言的解决方案; VB,C ++,C# - 任何事情都会发生,虽然C#是可取的。
谢谢


解决方案

您可以使用的 IconHandler 让图标在文件上按文件进行定制。注意,外壳扩展不应该用托管代码编写,所以C ++是选择这里的语言。



还请注意,这是极不寻常的是安装一个图标处理其他应用程序的文件类型


I know how to change an icon for a whole file type using registry and file type association. I also know how to change an icon for a separate folder using desktop.ini file.

My questions is whether it is possible to change an icon for one specific file, let's say one.doc file?

I cannot find a way doing it, yet some upload programs seem to be able to change an icon of the currently uploaded file, while all other files of this type stay with the standard icon. How do they do it?

I can accept a solution in any language; VB, C++, C# - anything goes, though C# is preferable. Thanks

解决方案

You can use an IconHandler to allow icons to be customized on a file-by-file basis. Note that shell extensions should not be written in managed code, so C++ is the language of choice here.

Note also that it's highly unusual to be installing an icon handler for another application's file type.

这篇关于如何改变的图标的特定类型的一个单一的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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