Storing elements in a combo box
I have a combo box in a dialog box. I have associated with a variable. I am trying to fill elements in the combo box. I have used the data option provided in the properties, SendDialogItem Method(no error but no effect) & also the m_combo.AddString(Error message) but none have worked. Can you pl. help me.
Re: Storing elements in a combo box
AddString should work. You just pass a CString which is then added to the list. Remember to set the size of the dropdown list in resource editor by first clicking on the comboboxes dropdown arrow and than dragging the lower blue dot to size the list... What exactly doesn't work ? Getting any error message using AddString !??
Re: Storing elements in a combo box
Do you get Error Message when you try to add strings thru AddString. Then please check the type of variable you have associated with the ComboBox control. It should be of type CComboBox.
Re: Storing elements in a combo box
Re: Storing elements in a combo box
Thanks for your help. Actually I was using the wrong type. How can we increase the size of combo box programatically?