elad-ep
elad-ep

Reputation: 383

multiple icon overlay handlers in one dll

I want to create multiple icon overlay handlers in order to change the overlay icon of a file based on its status. I'm looking for a way to implement all handlers in the same dll. accoring to GetOverlayInfo documentation I must return the same icon each time this function is called. so what icon should I return in my multi-handlers dll when GetOverlayInfo is called? how do I supply a different icon according to the file's status?

(I browsed through the source code of TortoiseOverlays project, and it seems to return different icon each time GetOverlayInfo is called based on the state. how come?)

Upvotes: 0

Views: 501

Answers (1)

Denis Anisimov
Denis Anisimov

Reputation: 3317

You must create several handlers with different CLSID in single dll. And every handler will return only one icon. This is the only way.

Upvotes: 1

Related Questions