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

how to give colour for dialog button or static buuto?any one explain full code ?pls pls

3 Answers  


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

0 Answers   University Exams,


how u can move CDC pointer to one line in cview?

2 Answers  


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

1 Answers  


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  






Explain the flow of SDI application?

8 Answers   Mphasis,


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  


how does conditionally close the Dialog Box ?

2 Answers   Infotech,


How to handle dynamic menus in MFC?

3 Answers   HCL,


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


how to repaint when working with horizontal scroll bar

0 Answers  


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

0 Answers  


Categories