What function is used to retrieve the currently selected
index in a list box?

Answers were Sorted based on User's Feedback



What function is used to retrieve the currently selected index in a list box? ..

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 function is used to retrieve the currently selected index in a list box? ..

Answer / rani

GetCurSel()

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More MFC Interview Questions

what is the difference between compiling and building?

1 Answers  


what do you mean by psychic window?

2 Answers   Patni,


How we call a dialog in another dialog?

2 Answers  


19)how to set Back Ground Picture to a Dialog Box in MFC ?

1 Answers  


What is the difference between Struts and JSF? Pls list some most suitable differences.

0 Answers  


What is document-view architecture ? Give me one real time example for SDI ?

2 Answers  


Differ GetMessage, PostMessage & PeakMessage?

4 Answers   Symphony,


Why Array Index starts from Zero

30 Answers   HCL,


1)set the Title for The File DialogBox, in MFC?

1 Answers  


What interface must be supported by an ActiveX control?

2 Answers  


what message is sent to an application when the user presses the primary button?

0 Answers   University Exams,


How can i implement the dynamic menus in MFC plz give the code

2 Answers  


Categories