The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on October 11, 2010, 03:44:19 PM

Title: Dropdown (comboBox)
Post by: ragdog on October 11, 2010, 03:44:19 PM
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:
(http://i.msdn.microsoft.com/dynimg/IC14929.png)

Can you help me please
Title: Re: Dropdown (comboBox)
Post by: dedndave on October 12, 2010, 12:15:32 AM
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
Title: Re: Dropdown (comboBox)
Post by: akane on October 12, 2010, 06:29:09 AM
I think you need to create instance of IAutoComplete (http://msdn.microsoft.com/en-us/library/bb776292(VS.85).aspx) 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.
Title: Re: Dropdown (comboBox)
Post by: farrier on October 12, 2010, 08:15:58 AM
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
Title: Re: Dropdown (comboBox)
Post by: ragdog on October 12, 2010, 09:34:48 AM
Thanks

I try it! this works with a editable editbox ?

Greets,
Title: Re: Dropdown (comboBox)
Post by: ragdog on October 12, 2010, 12:00:13 PM
Thanks Is solved with Antonis EzPromt example by Winasm.net

This works without CBN -Massages