Re: Win32lib additions [3]
- Posted by euman at bellsouth.net May 29, 2003
- 390 views
{{{ I dont understand Derek,
I'll just continue to make the change to Win32lib on my own and for those who want to gain a bit of speed set window_handle as global so you can use the [internal] Win32lib sequence like this:
ListLV = create(ListView, "",hWnd, x1, y1,x2, y2, flags) hListLV window_handle[ListLV] later when messages are needed to be sent VOID = w32Func( xSendMessage, {hListLV, etc..etc
instead of having to process hundreds of lines in Win32lib trying to send a simple message.
Im not saying you arent right Derek about good programming practice but when speed counts and it does, why not use something Win32lib [internally] uses on a regular basis. Are you saying we arent smart enough to use this sequence? never mind, just on a soapbox...
Euman
--- Original Message From: "Derek Parnell" <ddparnell at bigpond.com>
From: <euman at bellsouth.net>
To: "EUforum" <EUforum at topica.com>
Sent: Wednesday, May 28, 2003 10:05 PM
Subject: Win32lib additions [3]
Could you change this in Win32lib?
make [window_handle] a global sequence
sequence
window_handle_type,
---------
lValues = getControlInfo(myWin,
{CONTROLINFO_handle,
CONTROLINFO_handle_type,
CONTROLINFO_destroyed
})
will return a sequence containing the three requested values.
However, if you just want the handle info you can use the (undocumented)
getHWND(id) function. Or the function getHandles() to get every handle that
win32lib has.
I will not expose anymore variables as global - there are too many already
exposed.
----