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 |
what is the use of Mutex and critical section
What is the difference between the ASSERT and VERIFY macros?
What is socket?
What is the difference between workrer thread and UI thread
Difference between Debug and Release versions?
1)How to change a text of a button as Dynamically?
How to handle command line arguements from simple MFC application ?
What is the base class for most MFC classes?
What is the use of OninitDialog ?
visual Pogramming c++ coding for create a paint application.. (Please someone help me)
What is the range of intensity of RGB
Explain in sort What is CTargetObject?