Python COM and bitmap Resource ID's

Markus Wankus markus_wankus at hotmail.com
Sat Jan 11 18:38:22 EST 2003


Hi everyone,

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?


Regards,

-- 
Markus Wankus




More information about the Python-list mailing list