News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Dropdown (comboBox)

Started by ragdog, October 11, 2010, 03:44:19 PM

Previous topic - Next topic

ragdog

Hito

I Need help with my editable combobox
I have change the combobox typ Dropdowncombo

Now have i no idea how i can add this text to the combobox

exmample:


Can you help me please

dedndave

i don't have a good answer for you, but i do know the Run command uses an MRU list that is stored in the registry
many other windows components do the same, such as Search, etc

akane

I think you need to create instance of IAutoComplete interface (with CoCreateInstance), implement IEnumString derieved class, and finally call Init and Enable methods in the IAutoComplete object, providing editbox handle and your string enumerator class.
Call QueryInterface for IAutoComplete2, to change or query additional options.

If you only need to display URL history and/or local files and/or recently used documents, use SHAutoComplete function (still including CoInitialize).
For both cases you need a handle to edit control.

farrier

ragdog,

Look at:

CBN_EDITCHANGE
CBN_EDITUPDATE

to catch when the edit is finished and then use:

CB_ADDSTRING

to add the new entry.

hth,

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

ragdog

Thanks

I try it! this works with a editable editbox ?

Greets,

ragdog

Thanks Is solved with Antonis EzPromt example by Winasm.net

This works without CBN -Massages