Re: Getting Combo Box Drop Down Button hWnd?

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

Derek Parnell wrote:
> 
> Al Getz wrote:
> 
> [snip suggestion of Window Property API]
> > 
> > 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 :)
> 
> My testing of this indicates that there is no effective difference at all.
> That is
> to say that using GetWindowLong and GetProp ("idwin32lib") has no difference
> in performance.
> Even when adding 20+ properties to a hWnd, the GetProp is the same speed as
> GetWindowLong.
> 
> -- 
> Derek Parnell
> Melbourne, Australia
> irc://irc.sorcery.net:9000/euphoria
> 

Derek, that's hardly believable smile

Seeing as how one function requires a string compare and one uses an
array access, i dont see how they can return with the same delay.
The delay i've measured is three times longer but it's still not
that long so it's not going to be a 'major' issue most likely.
I just dont like changing something that adds a delay unless the
increased functionality is worth it.  In my code i use an added atom
test that adds a little time too.

No worries though, if it's just my computer then dont worry about 
it at all smile


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu