Re: Problem with a drop down window for a ccomboboxex
The drop list closes when it loses the focus, that is normal behavior,
correct. But how does the AutoComplete work such that you can continue
typing into the Editbox while the drop list is shown (and even the drop list
changes contents to match what is typed?). Somehow the edit box must still
get the characters that are typed, even if the dropdown listbox has the
focus.
-- David
"AliR (VC++ MVP)" <AliR@online.nospam> wrote in message
news:7r6Pi.2469$sm6.2284@nlpi069.nbdc.sbc.com...
That is the normal behavior, I don't think you will be able to override
that behavior.
Are you trying to do a AutoComplete?
http://www.codeproject.com/combobox/akautocomplete.asp
AliR.
"Skywalker" <vikhyatkarumanchi@gmail.com> wrote in message
news:1192028972.151911.218010@o80g2000hse.googlegroups.com...
Hello Everyone,
I'm facing a problem with a CComboBoxEx.... I've implemented a
deskband & i want to include a feature like the auto-suggest feature
as in the google toolbar.
My problem is that when some strings are populated in the drop down &
I do a show drop down, my edit control in loses focus.
I'm adding strings in my function (which is called in response to a
CBN_EDITCHANGE message). After populating the strings, I call
CMyCombobox->ShowDropDown (TRUE); But then, my edit box loses focus.
If I do an immediate SetFocus (), my drop down window disappears.
Any Idea as to how to solve this problem??
Any help would be appreciated.
Vikhyat