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 |
Hi can anyone explain about the synchronization objects types and where we are using in the code.
How WM_PAINT message gets called in MFC,please explain it . a)Who calls the WM_PAINT message? b)When it gets called? c)how it comes to message queue? Please Explain it
Tell me about different kinds of synchranization objects ?
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
how does the UIThread and worker thread communicates and handle events
what is the size of a process
1)How to change the size of a button at run time ?
1)How to create ToolTip in MFC?
If there is more than 100 control in a window how we can change the Taborder of a controls
Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.
How can i implement the dynamic menus in MFC plz give the code