Python COM and bitmap Resource ID's
markus_wankus at hotmail.com
Sun Jan 12 00:38:22 CET 2003
I am playing with Python and COM (win32all). I have gotten farthan than I
would have thought myself capable of getting. My ultimate goal is to use
my Python COM server to create a custom toolbar, which will lauch pure
Python scripts inside the app I am customizing.
Well, the app I am working with provides this functionality through the
following API funtion:
AddToolbar ( Cookie, Title, SmallBitmapResourceID, LargeBitmapResourceID,
MenuPositionForToolbar, DocumentType )
Where you must specify the resource ID's of the large and small bitmap.
Normally these are within the .dll calling the AddToolbar function, but I
don't have a .dll - I have Python! Is there any way to fool this into
grabbing a bitmap from somewhere? i.e. - Can you create a resource out of a
bitmap on the fly with the win32all extensions or something?
More information about the Python-list