加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

外壳图标叠加(C#)

发布时间:2020-12-15 18:16:46 所属栏目:百科 来源:网络整理
导读:我需要一种方法来使用C#或C在 Windows XP / Vista中为文件夹和文件创建Icon Overlay?任何例子? 谢谢, -Sean! 解决方法 Tigris的 TortoiseSVN产品大量使用由几个Tortoise产品共享的库提供的图标覆盖,覆盖层本身是用C而不是C#编写的. documentation for the
我需要一种方法来使用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 HKLMSoftwareTortoiSEOverlaysStatusname 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读