Re: Getting Combo Box Drop Down Button hWnd?

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

Al Getz wrote:
> 
> Hi Bernie,
> 
> Thanks for the idea, but i tried it and it doesnt get the hWnd, it
> just returns zero (0).  It could be because this particular hWnd
> doesnt seem to be registered or acknowledged as a 'child' window
> by Windows, so it also doesnt show up when enumerating child windows.
> Im guessing now that Windows creates the button control similar to
> how an up/down control works...where the up/down controls calls the
> edit control a "buddy" window so maybe there's no parent/child 
> relationship.
> Also what doesnt work is 'GetWindow' with ANY flag, because, again
> im guessing though, the window is not related to the hComboBox as
> a child.
> As per another suggestion, it doesnt not seem to be a child of a
> child either.  It just seems to exist.
> One thing i didnt try was to try to get the hWnd by looking up 
> children of the parent main window, but i'd hate to have to do that
> in the applications anyway unless there was also some simple way to
> tell that button from possible many other buttons.
> 
> Any more ideas appreciated and i'll most likely try them too.
> 

Al:

Go here you should be able to create your own combbox
and do what you want with it.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/comboex/reflist.asp

Bernie

My files in archive:
w32engin.ew mixedlib.e eu_engin.e win32eru.ew

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu