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 |
Explain in sort What is CTargetObject?
1)How to change the size of a button at run time ?
1)How to change a text of a button in runtime?
Which CPrintInfo member variable must be set for multiple page printouts?
how to repaint when working with horizontal scroll bar
How to convert a CString variable to char* or LPTSTR?
Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);
What is the difference between regular dlls and extended dlls?
What is the range of intensity of RGB
What is a message map, and what is the advantage of a message map over virtual functions?
What is CSingleDocTemplate?
How you create a button dynamically?