Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Combo Boxes

Status
Not open for further replies.

pghTech

Technical User
Jul 19, 2006
37
US
I am creating a program that query's a Acces Database and displays the results in a list box. However, I have grouped the search fields into a group and the search results in another group. One of the search fields is a combo box which contains different programming languages.

What I am having a hard time is just how I should be laying this combo box out. First off i am using MFC in VC++ 2005. Do I have to create a class for each control on my dialog? Can someone help me of how I am suppose to organize just taking the selected item in the combo box and relaying that to a variable.?
 
GetDlgItemText should get the selected option for you.
 
You should also use the resource script editor to create your dialog and give each control a unique ID.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top