[wxpython-users] [OT]: Manipulating Icons
Mike Driscoll
mdriscoll at co.marshall.ia.us
Fri Apr 11 09:10:23 PDT 2008
Andrea Gavana wrote:
> Hi All,
>
> sorry for the OT, this is probably a Windows/Python question
> instead of a wxPython one, but I know that some of the regular posters
> are Windows gurus and I'd like to ask for some advice.
> In one of my applications, I store certain files (with the extension
> .DATA) using a database, and I would like to change the icon of these
> files in Windows Explorer (not the entire icon, I'd like just to add a
> small image over the original Windows Explorer icon to signal that
> this particular file is present in the database). The problem is,
> there are many other DATA file which are not stored in the database
> (because they are less relevant to our work) and I'd like to leave
> those files icons untouched. Something akin what
> TortoiseCVS/TortoiseSVN do: they add a small image over the original
> file icon to signal if they are up-to-date, modified, etc...
>
> Does anyone know if this is possible and how?
>
> Thank you for your suggestions.
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.alice.it/infinity77/
>
>
Andrea,
I had no idea how to do this, but it's such an interesting question, I
decided to use my Google-Fu. Here's one way to do it (in C++):
http://www.codeproject.com/KB/shell/overlayicon.aspx
I don't understand everything they're doing in there, but maybe you can.
You might ask over at the PyWin32 mailing list and see if they have a
way to access this sort of thing from their package.
Mike
More information about the wxpython-users
mailing list