Derived View Classes Available in MFC

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Derived View Classes Available in MFC.

The following table shows MFC's view classes and their relationships to one another. The capabilities of your view class depend on the MFC view class from which it derives.

View Classes

ClassDescription
CViewBase class of all views.
CCtrlViewBase class of CTreeView, CListView, CEditView, and CRichEditView. These classes let you use document/view architecture with the indicated Windows common controls.
CEditViewA simple view based on the Windows edit box control. Allows entering and editing text and can be used as the basis for a simple text editor application. See also CRichEditView.
CRichEditViewA view containing a CRichEditCtrl object. This class is analogous to CEditView, but unlike CEditView, CRichEditView handles formatted text.
CListViewA view containing a CListCtrl object.
CTreeViewA view containing a CTreeCtrl object, for views that resemble the Solution Explorer window in Visual C++.
CScrollViewBase class of CFormView, CRecordView, and CDaoRecordView. Implements scrolling the view's contents.
CFormViewA form view, a view that contains controls. A forms-based application provides one or more such form interfaces.
CHtmlViewA Web browser view with which the application's user can browse sites on the World Wide Web, as well as folders in the local file system and on a network. The Web browser view can also work as an Active document container.
CRecordViewA form view that displays ODBC database records in controls. If you select ODBC support in your project, the view's base class is CRecordView. The view is connected to a CRowset object.
CDaoRecordViewA form view that displays DAO database records in controls. If you select DAO support in your project, the view's base class is CDaoRecordView. The view is connected to a CDaoRecordset object.
COleDBRecordViewA form view that displays OLE DB records in controls. If you select OLE DB support in your project, the view's base class is COleDBRecordView. The view is connected to a CRowset object.
System_CAPS_ICON_note.jpg Note

As of MFC version 4.0, CEditView is derived from CCtrlView.

To use these classes in your application, derive the application's view classes from them. For related information, see Scrolling and Scaling Views. For more information on the database classes, see Overview: Database Programming.

Using Views

Show: