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 interface must be supported by an ActiveX control?
what is the component of CLR ?
Can you explaing the relashionship between document,frame and view ?
what is message loop how mfc does it internally?
What is a critical section and how is it implemented?
In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?
What is a message map?
Have you ever used win32 APIs ?
how many types of messages are their
How to handle dynamic menus in MFC?
how to give colour for dialog button or static buuto?any one explain full code ?pls pls
What is the difference between Synchronous sockets and asynchronous sockets?