https://www.programmersought.com/article/74726500719/ IconOverlay implemented by Python, providing dynamic icon switching and refresh support Development Platform
Icon overlay concept:Controversy over IconOverlay in Windows inAdd my own icon overlaysThe author provides the code to implement the icon overlay function under python, but there are two problems
Create multiple IconOverlay classes and register them at the same time, one IconOverlay class corresponds to one icon
The dynamic switching of icons only needs to modify the file status table data in the sqlite database in the external application code.
After the IconOverlay class is written, it needs to be registered to the windows system. The code is as follows
|
使用ATL向导的话,会在resource中产生一个rgs的注册脚本文件放在"REGISTRY"目录中用来注册组件,会在程序中通过函数DECLARE_REGISTRY_RESOURCEID(IDR_OPCSERVER)使用,IDR_OPCSERVER就是向导产生的资源文件的ID,当服务器调用CComModule::RegisterServer()时,便会使用这些脚本来载入注册表的设置,并在调用CComModule::UnregisterServer()时移除它们。所有COM的注册键都放在HKEY_CLASSES_ROOT中。 https://blog.csdn.net/idiszerg/article/details/3875934 |
一般是由于 安装其他的 状态图标叠加程序导致的, 比如 微软的onedriver 或者 金山快盘 之类的工具, 可以把 注册表里面HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers 里面的除了 TortoiseSVN 之类的有关的可以删掉。 然后重启你的桌面。 就可以解决了。 转载于:https://my.oschina.net/zhuhj/blog/336020 |
|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )
GMT+8, 2024-11-23 03:18 , Processed in 0.061261 second(s), 23 queries .
Powered by Discuz! X3
© 2001-2013 Comsenz Inc.