Wed, 25 Nov 2009 23:50:09 +0200, /Stanimir Stamenkov/:
> Sat, 21 Nov 2009 11:39:00 +0100, /Adrian Buehlmann/:
>
>> Regarding the overlays, Windows 7 has the inherent problem that
>> it provides too few slots for overlay handlers out of the box
>> as noted in: http://bitbucket.org/tortoisehg/stable/issue/324 .
>
> I don't have technical knowledge how the overlay icons work, but
> I've wondered whether these could be implemented by dynamically
> serving different images from a single handler?  This sounds too
> simple to be that easy, but anyway.

I guess I've found the answer myself 
<http://msdn.microsoft.com/en-us/library/cc144123(VS.85).aspx#unknown_4327>:

> *Implementing GetOverlayInfo*
>
> This method is first called during initialization. The method
> returns the fully qualified path of the file containing the icon
> overlay image, and its zero-based index within the file. The Shell
> then adds the image to the system image list. Icon overlays can be
> contained in any of the standard file types, including .exe, .dll,
> and .ico.
>
> After initialization is complete, the Shell calls GetOverlayInfo
> when it needs to display the handler's icon overlay. The method
> should return the same file name and index that it did during
> initialization. Although the Shell uses the image that is cached in
> the system image list rather than loading the image from the file,
> an icon overlay is still identified by its file name and index.

Given "the method should return the same file name and index that it 
did during initialization" I understand it is not possible to use a 
single handler for different images, but then "although the Shell 
uses the image that is cached in the system image list rather than 
loading the image from the file, an icon overlay is still identified 
by its file name and index" leads me to think there might be a 
slight chance of it being possible.

-- 
Stanimir

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-discuss mailing list
Tortoisehg-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to