外壳图标叠加(C#)

前端之家收集整理的这篇文章主要介绍了外壳图标叠加(C#)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要一种方法来使用C#或C在 Windows XP / Vista中为文件夹和文件创建Icon Overlay?任何例子?

谢谢,
-Sean!

解决方法

Tigris的 TortoiseSVN产品大量使用由几个Tortoise产品共享的库提供的图标覆盖,覆盖层本身是用C而不是C#编写的.

documentation for the TortoiseOverlays project解释了他们如何使用它以及他们遇到的问题(用户名:访客,空密码),以及GPL的源代码Subversion repository(与上面相同的用户名/密码).

来自文档的Snippit:

TortoiSEOverlays registers itself with the explorer to handle the nine states mentioned above,i.e. it registers nine overlay handlers. The explorer process initializes the TortoiSEOverlays handler,calling its IShellIconOverlayIdentifier::GetOverlayInfo(). TortoiSEOverlays looks for the registered overlay handlers under HKLM\Software\TortoiSEOverlays\Statusname and calls their GetOverlayInfo() method so they can initialize too (Note that any change to the icon name,index,… your handler does are overwritten later and won’t be used – it’s TortoiSEOverlays that handles the icons now). After the initialization,TortoiSEOverlays relays every call to its IShellIconOverlayIdentifier::IsMemberOf() method to the other handlers. The first handler that returns S_OK determines whether the icon is shown or not.

猜你在找的C#相关文章