1. Difference Between a Control ID and a Win32 Handle

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.

new topic     » topic index » view message » categorize

2. Re: Difference Between a Control ID and a Win32 Handle

{{{ 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.

Try findParentWindow

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu