Re: Getting Combo Box Drop Down Button hWnd?
- Posted by Al Getz <Xaxo at aol.com> Jun 11, 2005
- 597 views
Derek Parnell wrote: > > Al Getz wrote: > [snip] > > > 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 ? > > No. The idea works very well. My reason for changing it is that I've expanded > the use > of control properties to a huge degree and I wanted to enable developers to > add their > own plus invent totally new types of controls. So I needed a nice proven way > of doing > this. At first I used standard Euphoria sequences, but now I believe that the > built-in > Windows API stuff will perform better. > > -- > Derek Parnell > Melbourne, Australia > irc://irc.sorcery.net:9000/euphoria > Hi again derek, Oh ok, now i remember why i originally rejected the idea for use in managing id's... Using a string identifier of two characters long ("ID") requires three times longer to access than using GetWindowLong(). This means GetWindowLong() can retrieve three id's in the time it takes GetProp() to retrieve one. And that's assuming only two chars used for the string AND only a few Properties...increasing the string length increases the access time, and also increasing the number of Properties for a given hWnd also increases the access time. I doubt that adding Properties for another hWnd will increase access time however, luckily :) All this of course doesnt mean it's not useable, just that it's going to eat up a bit more time to do the same thing (and this will occur for each posted message). Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"