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 you find memory leaks?
is there any class which is not derived from Cobject
How to find the mouse entering an image?..while entering need to display next image...
1) create ToolTip in MFC?
Name the Synchronization objects?
How do I create a dialog box in mfc?
What is the initial function to be called in MFC and what it will do
1)At run-time, you can change the icon by calling the LoadIcon() function?
How we call a dialog in another dialog?
What are the types of button controls?
How many types of dialog box are their
What is the base class for MFC