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 to handle dynamic menus in MFC?
Tell me the different controls in MFC ?
how does the UIThread and worker thread communicates and handle events
Explain StretchBlt and BitBlt
Whats is DDX & DDV in MFC?
Which CPrintInfo member variable must be set for multiple page printouts?
What is the base class for MFC
How can server communicate with more than one client
I have 2 threads. One thread prints odd numbers and the second thread prints even numbers. Now, I have to execute the threads alternatively so that i can output 1,2,3,4,5,6,..... write code for this?
how to give colour for dialog button or static buuto?any one explain full code ?pls pls
Explain about MDI and CMultiDocTemplate ?
What is the base class for MFC Framework ?