1. Difference Between a Control ID and a Win32 Handle
- Posted by Ron Tarrant <rtarrant at sympatico.ca> Sep 28, 2002
- 378 views
Hi all, I'm trying to find out what the difference is between a control ID (that's returned by the create() routine) and a handle (as in HWnd). I'm assuming they aren't the same thing because in a call such as: w32Proc(ScrollWindow, {getHandle(myWindow), HChange, 0, 0, 0}) where myWindow is the control ID, it's passed to the getHandle() routine to get the handle needed by ScrollWindow(). To me, this implies that we're dealing with two separate entities. Also, browsing through the docs for win32lib's getControlInfo() routine, I don't see any mention of an lValue for the control ID of the control about which I'm seeking information. Does anyone know if there's a way to use getControlInfo() to get the control ID? I'm using it in a while loop to find the top-level window in which a control is located, so I don't think getSelf() will work in this case. Thanks! -Ron T.
2. Re: Difference Between a Control ID and a Win32 Handle
- Posted by petelomax at blueyonder.co.uk Sep 28, 2002
- 355 views
{{{ On Sat, 28 Sep 2002 11:20:08 +0000, Ron Tarrant <rtarrant at sympatico.ca> wrote:
I'm using it in a while loop to find the top-level window in
which a control is located, so I don't think getSelf() will work
in this case.
which a control is located, so I don't think getSelf() will work
in this case.
Try findParentWindow
Pete