What function is used to retrieve the currently selected
index in a list box?
Answers were Sorted based on User's Feedback
Answer / arvin
GetCurSel() will be used to retrieve the index number and
GetText() is used to retrieve the text.
Example
int index;
CString strText;
index = m_ctlListBox.GetCurSel();
m_ListBox.GetText(index,strText);
| Is This Answer Correct ? | 6 Yes | 0 No |
how does conditionally close the Dialog Box ?
1)dynamic creation of a Button ?
What is the difference between regular dlls and extended dlls?
visual Pogramming c++ coding for create a paint application.. (Please someone help me)
How can i change the color of a dropdowncombobox elements
How we call a dialog in another dialog?
What is model and modeless dialog box ? Give some examples?
What MFC base classes provide support for ActiveX controls?
I want recent paper pattern for HP company?
How we can findout Memoryleaks, In what way it can be avoided
What is CArchive class dowes?
how many types of classes are ther,what are that