Re: Getting Combo Box Drop Down Button hWnd?

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

Jonas Temple wrote:
> 
> Al Getz wrote:
> > > > Anyone have any luck getting the hWnd to the drop down button in a
> > > > drop down ComboBoxEx32 class combobox?
> > > > I've gotten the other control's hWnd's pretty easy but this one is
> > > > a little elusive.
> > > > I'm pretty sure it was discussed before somewhere on here.
> 
> Al,
> 
> I browsed through MSDN for ComboBox/ComboBoxEx and I can see no way to get the
> handle
> of the button control.
> 
> Might we ask as to why you're needing the handle for the dropdown button? 
> There might
> be another way around what you're trying to do.
> 
> Jonas Temple
> <a href="http://www.yhti.net/~jktemple">http://www.yhti.net/~jktemple</a>
> 
> P.S. - Yeah, I know I haven't been around lately but I'm going to try and
> change that.
> 

Hello,

Yes, thanks for asking smile
Im trying to change the internal id of the button control...something
that has been very successful with the two other controls that are
contained within the ComboBox control.
By changing the internal id's i can get the id of my controls very
quickly, rather than have to search through a possible long list of
hWnds.
Right now im using a 'workaround' by allocating about 20 id's just
for ComboBox button controls, so that my library ignores any message
coming from one of those buttons, while the user's controls are 
handled correctly.
Internally Windows automatically assignes id's to the ComboBox
controls starting at 1000 decimal.  Since a user typically creates
maybe 100 or 200 controls, 1000 is way too high and causes an error.
By allocating 20 (or more) id's there's no problem, but i'd still
like to handle this the same way i've handled the other two sub controls...
by simply changing the id's, and that way they can get events and other
stuff normal controls can handle.

Any ideas?

I've considered subclassing, but i'd rather not because i havent
needed to do that yet and will only use that as a last resort...even
after allocating some (rather wasted) space for combo boxes that
may never be created.  After all i guess it's not really that
much space anyway and it's only allocated if the user creates more
than 1000 controls.

So far all things considered, i'd like to be able to get the hWnd
and reassign the id...it's worked so well with the other sub controls.


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