[python-win32] SetWindowTheme for Vista
King Simon-NFHD78
simon.king at motorola.com
Fri Jan 16 16:52:57 CET 2009
> -----Original Message-----
> From: python-win32-bounces+simon.king=motorola.com at python.org
> [mailto:python-win32-bounces+simon.king=motorola.com at python.or
> g] On Behalf Of Mike Driscoll
> Sent: 16 January 2009 15:34
> To: Python-Win32 List
> Subject: [python-win32] SetWindowTheme for Vista
>
> Hi,
>
> There has been a discussion on the wxPython user's group
> about how the
> new QT licensing will affect wx's viability. They got slightly
> off-topic and pointed out that the wx treectrl isn't wrapping Vista's
> theme like it should. They pointed to this article on setting
> the window
> theme: http://www.danielmoth.com/Blog/2007/01/treeviewvista.html
>
> Is there a way to call SetWindowTheme in pywin32? I'm not
> sure if this
> would affect wx anyway, but I don't mind trying it out if I
> knew how to
> call it.
>
> Thanks.
>
> Mike
I don't know about pywin32, but it looks like you can at least access
the function via ctypes:
>>> import ctypes
>>> ctypes.windll.UxTheme.SetWindowTheme
<_FuncPtr object at 0x00C96198>
Simon
More information about the python-win32
mailing list