how to add dynamically to Combo Box
-
Hi, I have MDI project. In one of the dialog boxes, I have a Combo Box, and according to a file (this file is read before the dialog is opened), I have to add items to the combo box, and the number of items is different according to the read file. how can I add dynamically to the Combo Box? Ehsan Behboudi
-
Hi, I have MDI project. In one of the dialog boxes, I have a Combo Box, and according to a file (this file is read before the dialog is opened), I have to add items to the combo box, and the number of items is different according to the read file. how can I add dynamically to the Combo Box? Ehsan Behboudi
CComboBox::AddString()
/ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com -
Hi, I have MDI project. In one of the dialog boxes, I have a Combo Box, and according to a file (this file is read before the dialog is opened), I have to add items to the combo box, and the number of items is different according to the read file. how can I add dynamically to the Combo Box? Ehsan Behboudi
CComBox
hasAddString()
andInsertString()
methods to add items --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Pinky, are you pondering what I'm pondering? I think so Brain, but how will we fit the hamster inside the accordion? -
Hi, I have MDI project. In one of the dialog boxes, I have a Combo Box, and according to a file (this file is read before the dialog is opened), I have to add items to the combo box, and the number of items is different according to the read file. how can I add dynamically to the Combo Box? Ehsan Behboudi
Combo boxes only work with strings. They are "dumb" as far as data types, formating, etc. are concerned. If you want data from the file to go to a combo box, then you are responsible for reading in the data from the file, parsing the data, and adding the data to the Combo Box.
Have you answered an MTQ? Check out the stats!