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 repaint when working with horizontal scroll bar
Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer
Difference between Debug and Release versions?
In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?
3 Answers Financial Technologies,
In VC++ How to transfer between one exe to another exe while running..
visual Pogramming c++ coding for create a paint application.. (Please someone help me)
Do you have an idea about MFC?
How to handle dynamic menus in MFC?
What is LPCTSTR? What does LP denote it?
if i modified data in 1 view how does the other view knows
Can you explaing the relashionship between document,frame and view ?
How to find the mouse entering an image?..while entering need to display next image...