[python-win32] Adding New API functions
Mark Hammond
mhammond@skippinet.com.au
Tue, 18 Jun 2002 09:26:29 +1000
> The api calls are TransparentBlt and AlphaBlt, I have added them to my own
> copy of the source and they work fine. I have added them as
> member functions
> of the CDC class even though they aren't actually included as part of MFC.
> Is this an okay thing todo or is Win32all supposed to be an exact copy of
> the Windows api and MFC classes?
I can live with that. However, they may be better in the win32gui module,
so it can be used on CE and anywhere else that using the MFC libraries
causes pain (if not death)
> In a similar vein I almost crashed my machine when I was creating about
> 200,000 regions and not calling DeleteObject on them. IMHO
> Microsoft should
> have added a simple hRgn != NULL check into MFC, but that ain't
> never going
> to happen, so it would make sense to me to add this check to
> Python wrapper
> function and greatly reduce the scope for memory leaks.
No problem!
Mark.