hi
im writin a simple GUI project usin C++ (Dialog). i have an input file with a list of foods. my goal is to display the list of foods in a ComboBox and then Add some new food and Delete some. But i just cant put the list to a ComboBox (dropdown list style). i used addString method. it didnt work. can anybody just tell me the steps to add a list to a ComboBox using C++? Thanks :)
Do you have a variable of type control? In other words, it would be a variable defined something like as CComboBox m_Box. If you have a vaiable like this, you can use AddString. That would look like m_Box.AddString(...) in an MFC application.
You can, of course, also have a CString variable associated with the edit box part of the control. Then it would just be a matter of grabbing the CString variable and adding it to the list with AddString.