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 are the advantages of using Doc/View or SDI over DialogBox
what is the use of CCmdTarget?
Tell me the work of HTREDUCE and HTZOOM
How many types of dialog box are their
How can update edit control data of an executing application from other application?
Why not virtual functions to handle messages?
What is stack size in win32 program?
1) create ToolTip in MFC?
plzz tell me what we can do and dont in tally ERP & sap business one?
If i derive a new class from CObject what are the basic features my derived wil get ?
what if we provide two message handler for same message ?
Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer