Re: Getting Combo Box Drop Down Button hWnd?
- Posted by Al Getz <Xaxo at aol.com> Jun 11, 2005
- 579 views
Derek Parnell wrote: > > Al Getz wrote: > > [snip] > > > I had considered using Windows Properties API's but decided that because > > they use string values that they would add an unnecessary delay to > > looking up the id's, and using ATOM's would muddie up the processing > > and probably cause a delay also. > > The string value is the name of the property and not the value of it. > > constant idprop = allocate_string("win32libid") > > . . . > control_hWnd &= 0 > newid = length(control_hWnd) > hWnd = call_c_func( CreateWindow, { . . . }) > control_hWnd[newid] = hWnd > VOID = call_c_func( SetProperty, { hWnd, idprop, newid } ) > > and later > > id = call_c_func( GetProperty, { hWnd, idprop } ) > > -- > Derek Parnell > Melbourne, Australia > irc://irc.sorcery.net:9000/euphoria > Hi there Derek, Now that i see it written out it doesnt seem as bad as it originally looked. Just one question...did you have a problem with using GetWindowLong() with GWL_USERDATA that would motivate you to look for another method of managing id's ? Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"