[python-win32] Adding New API functions
Andrew Wilkinson
ajw126@student.cs.york.ac.uk
Tue, 18 Jun 2002 15:19:42 +0100
> > 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)
>
Those two calls are actually only available on Windows 98/Me and Windows
2000/XP so they can't be used on Windows CE. I guess this could cause a
problem if someone tries to use the extension on Windows 95/NT 4. I haven't
got a clue what would happen, I guess it would only crash if they tried to
execute the call, the rest of the library would work ok.
I will add them into the win32gui module as well though.
I've just checked on the Microsoft website and these calls have been added
to MFC, but I guess that they were added as part of the latest version of
MSVC++ as my version (6) doesn't have them in.
Andrew