Re: [python-win32] transparency on window

2008-01-20 Thread Henry Baxter
Are you sure you are working with a layered window? I'm pretty certain that for these functions to work you need to have a window with the WS_EX_LAYERED style bit set. On Jan 20, 2008 2:42 AM, astralrod <[EMAIL PROTECTED]> wrote: > > Hello! > > I am doing a script to make a window transparent, bu

Re: [python-win32] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-17 Thread Henry Baxter
2008 3:50 AM, Thomas Heller <[EMAIL PROTECTED]> wrote: > Henry Baxter schrieb: > > Hello, > > > > I keep getting this error, and I cannot figure out why. I have code that > > registers a window class that works, and code that does not. Both bits >

Re: [python-win32] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-16 Thread Henry Baxter
stopped importing that module, the problem went away. I am actually fairly annoyed that I could not easily determine what the precise problem was, but thankfully for me it has gone away. Henry On Jan 16, 2008 6:37 PM, Tim Roberts <[EMAIL PROTECTED]> wrote: > Henry Baxter wrote: > &g

Re: [python-win32] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-16 Thread Henry Baxter
I also tried using 'pointer' instead of byref, just to see if I could learn anything. The error is now: ctypes.ArgumentError: argument 1: : expected LP_WND CLASS instance instead of LP_WNDCLASS Now I'm just more confused... On Jan 16, 2008 5:47 PM, Henry Baxter <[EMAIL

[python-win32] LP_WNDCLASS vs pointer to WNDCLASS

2008-01-16 Thread Henry Baxter
Hello, I keep getting this error, and I cannot figure out why. I have code that registers a window class that works, and code that does not. Both bits of code create a WNDCLASS, both use byref(thewndclassinstance), both make sure there is always a reference to the window class structure instance t

Re: [python-win32] HRGN, RGNDATA, RGNDATAHEADER

2008-01-14 Thread Henry Baxter
s very much appreciated :) On Jan 14, 2008 4:26 PM, Tim Roberts <[EMAIL PROTECTED]> wrote: > Henry Baxter wrote: > > > > I'm having some trouble working with window 'regions'. I need to > > initialize some memory for the region and work with it. > &

[python-win32] HRGN, RGNDATA, RGNDATAHEADER

2008-01-14 Thread Henry Baxter
Hello, I'm having some trouble working with window 'regions'. I need to initialize some memory for the region and work with it. I have copied my best approach so far, but I know I don't know what I'm doing when it comes to the 'Buffer' field in RGNDATA. MSDN describes what HRGN points to (a RGNDA

Re: [python-win32] Custom control, WS_CHILD

2008-01-14 Thread Henry Baxter
Very cool :) Thank you Thomas On Jan 13, 2008 11:14 PM, Thomas Heller <[EMAIL PROTECTED]> wrote: > Henry Baxter schrieb: > > Thanks for the tip, venster not only has a neat way to resolve this > issue, > > but plenty of other really useful things (lists of windows const

Re: [python-win32] Custom control, WS_CHILD

2008-01-13 Thread Henry Baxter
Thanks for the tip, venster not only has a neat way to resolve this issue, but plenty of other really useful things (lists of windows constants and other stuff that take time to assemble). On Jan 13, 2008 4:03 AM, Thomas Heller <[EMAIL PROTECTED]> wrote: > Henry Baxter schrieb: &g

Re: [python-win32] Custom control, WS_CHILD

2008-01-12 Thread Henry Baxter
ns welcome! Henry On Jan 12, 2008 1:42 AM, Henry Baxter <[EMAIL PROTECTED]> wrote: > Hello, > > I have been doing some win32 programming using ctypes. I have successfully > created windows, common controls, manipulated and shown images, and so > forth. However, I am having trou

[python-win32] Custom control, WS_CHILD

2008-01-12 Thread Henry Baxter
Hello, I have been doing some win32 programming using ctypes. I have successfully created windows, common controls, manipulated and shown images, and so forth. However, I am having trouble with custom controls. I can create a new window class, successfully register it, then successfully create a