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 command line arguements from simple MFC application ?
if i modified data in 1 view how does the other view knows
what are the feauters of CObject
if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?
how u can move CDC pointer to one line in cview?
Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?
What is the difference between the ASSERT and VERIFY macros?
Does the application have more than one object? If no, then what is the reason?
Tell us something about MFC?
What is userdefine Messages in MFC?
What is the difference between GetMessage and PeekMessage ?
how to repaint when working with horizontal scroll bar