Thanks Mathias for a great component!
I made a few small changes.
I also deleted the following line from CAdvComboBox::CreateDropList, because it
does not appear to be used:
int nCount = m_list.size();
I wanted the text in the edit box to be selected when the combobox gets focus,
so the user can just start typing a new search without first deleting or
selecting what is there. To do this, I added the following to
CAdvComboBox::OnSetfocusEdit right after the GetFocus line:
if (m_pEdit)
{
m_pEdit->PostMessage(EM_SETSEL, 0, -1);
}
Finally, I wanted the dropdown list to close when the combobox loses focus, so
I added the following to the end of CAdvComboBox::OnKillfocusEdit:
if (m_pDropWnd)
{
OnDestroyDropdownList(0,0);
}
Original issue reported on code.google.com by mathias....@gmail.com on 29 Sep 2010 at 9:26
Original issue reported on code.google.com by
mathias....@gmail.com
on 29 Sep 2010 at 9:26