Dynamically adding items to a combo box
-
Hello everybody I have a normal combobox in a dialog, and besides the initial items loaded from a file I want the item shown in the editbox area of the combobox to be automatically updated when the user writes something inside it. I also wuld like this string to be "stored", so that next time he/she pulls down the combobox this string is still there. I actually tried to implement notification handlers for: ON_CBN_SELENDOK , ON_CBN_EDITCHANGE and ON_CBN_EDITUPDATE but I couldn't exactly get what i need. Any info/tip will be greatly appreciated thank you best regards
-
Hello everybody I have a normal combobox in a dialog, and besides the initial items loaded from a file I want the item shown in the editbox area of the combobox to be automatically updated when the user writes something inside it. I also wuld like this string to be "stored", so that next time he/she pulls down the combobox this string is still there. I actually tried to implement notification handlers for: ON_CBN_SELENDOK , ON_CBN_EDITCHANGE and ON_CBN_EDITUPDATE but I couldn't exactly get what i need. Any info/tip will be greatly appreciated thank you best regards
You want the program to add new items to the combobox as the user types in text? For example: EditBox: January ComboBox: J Ja Jan Janu Janua Januar January Is that what you mean? Window should send ON_CBN_EDITCHANGE as the user makes changes to the editbox. Add new items accordingly. Kuphryn
-
You want the program to add new items to the combobox as the user types in text? For example: EditBox: January ComboBox: J Ja Jan Janu Janua Januar January Is that what you mean? Window should send ON_CBN_EDITCHANGE as the user makes changes to the editbox. Add new items accordingly. Kuphryn
-
Hello, thank you with reference to your example i'd wish adding just only 'January', I mean when the user has entered a new complete item thanks again for any tip best regards