[python-win32] Have IHTMLWindow2 objectneed correspondingIHTMLWindow3 object and flash box

Tim Roberts timr at probo.com
Tue Jul 31 19:22:03 CEST 2007


Richard Bell wrote:
> Tim,
>
> Did you really mean:
>
>    brush = win32ui.CreateBrush(1, 0, 0)  # create a brush (hollow, no color)
>
> since the win32gui brush will not select into the device context?
>   

Perhaps the win32gui brush needs to be wrapped or unwrapped in some
way.  I'll have to check that out.  I don't know whether it is a raw
handle or a Python-wrapped handle object.  In any case, it should
produce the same results as what you have, except that you need to
remember to delete the one you created.

> Which brings me to the real question:
>
> What's the difference between win32ui and win32gui anyway and what's the
> best online reference for them?
>   

As I understand it, win32gui exposes the raw GDI APIs and deals with raw
GDI handles as plain integers.  win32ui is an attempt to wrap the raw
GDI interfaces with Pythonic wrapper objects.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list