RE: Difference Between a Control ID and a Win32 Handle

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jonas  Temple wrote:
> Ron,
> 
> I'll take a stab at this...Derek, correct me if I'm wrong.
> 
> A control ID returned from the create() routine is basically an index to 
> 
> a sequence of hWnds stored internally in win32lib.  Each time you issue 
> a create() the hWnd returned from the createEx() Windows API is appended 
> 
> to the end of the list and you are given that index number.
> 
> Why, you may ask? It's faster within win32lib to refer to a sequence 
> index than to try and find the hWnd in a sequence of hWnds.  

Okay, I think I see now. An hWnd is a real honest-to-goodness pointer
and a control ID is an index into the array of honest-to-goodness
pointers managed by win32lib.

Thanks, Jonas.

-Ron T.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu