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 difference between compiling and building?
what do you mean by psychic window?
How we call a dialog in another dialog?
19)how to set Back Ground Picture to a Dialog Box in MFC ?
What is the difference between Struts and JSF? Pls list some most suitable differences.
What is document-view architecture ? Give me one real time example for SDI ?
Differ GetMessage, PostMessage & PeakMessage?
Why Array Index starts from Zero
1)set the Title for The File DialogBox, in MFC?
What interface must be supported by an ActiveX control?
what message is sent to an application when the user presses the primary button?
How can i implement the dynamic menus in MFC plz give the code