Re: [python-win32] Dereferencing lParam pointer

2010-02-24 Thread Mark Hammond
On 25/02/2010 10:01 AM, Tim Roberts wrote: but I am not sure. Is there a way to get the array/list? You will have to use a package like ctypes to do that. Something like this: lst = ctypes.cast(lParam, ctypes.POINTER(ctypes.c_int)) print lst[0] print lst[1] Or use something like win32gui.Py

Re: [python-win32] Dereferencing lParam pointer

2010-02-24 Thread Tim Roberts
Ulrich Mierendorff wrote: > > I am doing some win32 programming with python and want to modify a > statusbar of a window. In my code I use > win32gui.SetWindowLong(statusbar_window, win32con.GWL_WNDPROC, > mystatusbarproc) > to set a custom window procedure. > > In "def mystatusbarproc(window,