Combo String

How can I get the visible String (ie the String I selected)
from a ComboBox?
matchzAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jrmcgConnect With a Mentor Commented:
// this will retrieve the text at the given index.
CString strValue;
int index;

// CboBox is a control variable assigned to your CComboBox control

index = CboBox.GetCurSel();
CboBox.GetLBText(index, strValue);

if you want the text as soon as the item is selected use the

CBN_SELCHANGE
message and use the code above.

If you need any further help with it let me know...
0
 
matchzAuthor Commented:
Thx, Exactly what I want.
0
 
jrmcgCommented:
Glad I could help..

J.R.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.