I want to change overlay Icon of file on the basis of some status. if file status get changed the overlay Icon should change. for example: If file is locked overlay icon related to locked should set & If release it should set different overlay icon.
Asked
Active
Viewed 736 times
0
-
http://www.codeproject.com/Articles/7484/How-to-overlay-an-icon-over-existing-shell-objects – Jonathan Potter Jan 14 '15 at 20:37
1 Answers
0
To set overlay Icon needs to implement a IShellIconOverlayIdentifier interface
write registry entries in registry
for COM
dll
registration and one more registry
requires for overlay icon identifier registration see below:
Key:"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\TestShellIconOverlayIdentifiers"
with default value [CLSID_of_registered_DLL]
After this some functions need to call while registration to insert overlay Icons in system memory of already running instances of explorer for that I found the answer on below post. How can I programmatically refresh Windows Explorer?
See the function "bool RebuildIcons()"
on TortoiseCVS - ShellUtils.cpp

Community
- 1
- 1

MUKHTAR INAMDAR
- 85
- 4
- 17