| | |
need help with ComboBox (C++, Dialog)
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2004
Posts: 12
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Nov 2004
Posts: 15
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by ohnbabygal
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
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.
•
•
Join Date: Sep 2004
Posts: 12
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by steveh
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.
or is there any way i can make the combobox to drop the list when i hit down arrow?
thanks in advance.
•
•
Join Date: Jul 2005
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by ohnbabygal
thanks. now i have the list in the combobox, BUT the list doesnt come down when i hit down arrow. i am trying to use m_combo.create but i dont know what parameters i should use, for example .. CWnd *PparentWnd.
or is there any way i can make the combobox to drop the list when i hit down arrow?
thanks in advance.
what u need to do is during the design time itself after placing the combobox, then click on the arrow. u will see a rectangle box in the background , then drag it , to wahtever lenght u need to use, start using it and enjoy coding.
![]() |
Similar Threads
- Filling a ComboBox.... (Java)
- HELP! How do I search 6 fields with one combobox (Visual Basic 4 / 5 / 6)
- Combobox with file browser (C++)
- How to display dialog box items? (C)
- about ComboBox problem (C)
- End Program - Dialog (Web Browsers)
Other Threads in the C++ Forum
- Previous Thread: Serial Port
- Next Thread: C++ help with Julian day program
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





