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 give colour for dialog button or static buuto?any one explain full code ?pls pls
what message is sent to an application when the user presses the primary button?
how u can move CDC pointer to one line in cview?
1)set the Title for The File DialogBox, in MFC?
1)To Remove WS_MINIMIZEBOX in a Frame ?
Explain the flow of SDI application?
plzz tell me what we can do and dont in tally ERP & sap business one?
how does conditionally close the Dialog Box ?
How to handle dynamic menus in MFC?
What is the initial function to be called in MFC and what it will do
how to repaint when working with horizontal scroll bar
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?