What view class enables you to use an edit control as a view?



What view class enables you to use an edit control as a view?..

Answer / krishna akkulu

If you plan to manipulate simple text in your application,
CEditView does just that. It uses an Edit control to form
the user interface for the view. CEditView does not support
different font or color settings, though. For those
settings, you use a CRichEditView (discussed later, in the
section, "Using CRichEditView"). In addition to wrapping
the Edit control, CEditView also adds support for the
following command messages:

ID_FILE_PRINT
ID_EDIT_CUT
ID_EDIT_COPY
ID_EDIT_PASTE
ID_EDIT_CLEAR
ID_EDIT_UNDO
ID_EDIT_SELECT_ALL
ID_EDIT_FIND
ID_EDIT_REPLACE
ID_EDIT_REPEAT
The catch is that the menu items to generate these commands
are not implemented automatically; you must add these
yourself.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More MFC Interview Questions

What is Multithreading

1 Answers   Invensys,


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


How to convert a CString variable to char* or LPTSTR?

5 Answers   Dover,


Explain Doc/View architecture

6 Answers   Huawei,


What is the range of intensity of RGB

1 Answers  






How can i change the color of a dropdowncombobox elements

2 Answers  


How to handle dynamic menus in MFC?

3 Answers   HCL,


I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)

2 Answers   Invensys,


What function is called by a document class to notify views that the document has been changed?

2 Answers  


what is the use of CWinApp class?

3 Answers   Mphasis,


What interface must be supported by an ActiveX control?

2 Answers  


What is the difference between GetMessage and PeekMessage ?

3 Answers  


Categories