win32 DeleteObject ??

Mark Hammond mhammond at skippinet.com.au
Fri Feb 15 20:22:45 EST 2002


Robin Becker wrote:
> In Mark Hammond's excellent win32 extensions I can see how to obtain a
> handle to a bitmap, but how does one remove from memory? I can't seem to
> find DeleteObject.
> 
> Similarly I can't seem to find things like CreateCompatibleDC, BitBlt
> etc which are part of win32. It almost seems as though I'm missing
> win32gdi.pyd :)
> 
> Do I really have to lug along the whole of MFC to do simple things?

These should be exposed by a module, I agree.  But they aren't :(.  They 
could be added to win32gui, or, as you suggest, a new win32gdi module 
created.

These few functions would be trivial to add to win32gui, but it is not 
clear if that is all you need.

Mark.




More information about the Python-list mailing list