I need to create a combo box which provides the auto search feature to a user. Its should behave just like the combo box which we see in the Windows 'Run' dialog or in the windows search dialog. So, as the user types in characters , all the matching strings in the combo box list must be displayed.
MY idea for doing this is as follows:
1> Get notified every time the user edits the combo edit box.
2> In the edit handler, get the text in the combobox.
3> Then search through all entries in the combo box list and build a vector of matching entries in the list.
4> Create a list box populated with the strings in the vector and display it (properly aligned with the combo box).
Is there a simpler way of doing this or does MFC provide a simpler way or any ready made functions which can accomplish all the tasks mentioned in the steps above? Some sample code or links will be helpful.