现在的位置: 首页 > 综合 > 正文

View Classes (Architecture) – MSDN6翻译交流

2013年03月16日 ⁄ 综合 ⁄ 共 2467字 ⁄ 字号 评论关闭

BUG和建议请提出,谢谢!

View Classes (Architecture)

视图类(体系)

CView and its derived classes are child windows that represent the client area of a frame window. Views show data and accept input for a document.

CView 和它的派生类(都)是(用于)描述框架窗口的客户区的子窗口。视图为文档显示数据并接受输入。

A view class is associated with a document class and a frame window class using a document-template object.

一个视图类使用文档模板物件关联到一个文档类和一个框架窗口类。

CView

The base class for application-specific views of a document’s data. Views display data and accept user input to edit or select the data. Derive your view class(es) from CView.

文档数据的特定应用视图的基类。视图显示数据并接受用户输入来编辑或选择数据。(请)从CView继承你(自己)的视图类。

CScrollView

The base class for views with scrolling capabilities. Derive your view class from CScrollView for automatic scrolling.

带滚动功能的视图的基类。(请)从CScrollView 继承你(自己的)视图类(以实现)(自动滚动)。

Form and Record Views

Form views are also scrolling views. They are based on a dialog box template.

Record views are derived from form views. In addition to the dialog box template, they also have a connection to a database.

CFormView

A scroll view whose layout is defined in a dialog box template. Derive a class from CFormView to implement a user interface based on a dialog box template.

CDaoRecordView

Provides a form view directly connected to a Data Access Object (DAO) recordset object. Like all form views, a CDaoRecordView is based on a dialog box template.

CRecordView

Provides a form view directly connected to an Open Database Connectivity (ODBC) recordset object. Like all form views, a CRecordView is based on a dialog box template.

Control Views

控件视图

Control views display a control as their view.

控件视图显示一个控件作为它们的视图。

CCtrlView

The base class for all views associated with Windows controls. The views based on controls are described below.

所有关联到视窗控件的视图的基类。这些基于控件的视图在下面有所描述。

CEditView

A view that contains a Windows standard edit control (see CEdit). Edit controls support text-editing, searching, replacing, and scrolling capabilities.

包含了视窗标准编辑控件的视图(参见CEdit)。编辑控件支持文本编辑、搜索、替换和滚动功能。

CRichEditView

A view that contains a Windows rich edit control (see CRichEditCtrl). In addition to the capabilities of an edit control, rich edit controls support fonts, colors, paragraph formatting, and embedded OLE objects.

包含了视窗(丰)富编辑控件的视图(参见CRichEditCtrl)。除了具有编辑控件的功能之外,富编辑控件(还)支持字体、颜色、段落格式化和嵌入的OLE物件。

CListView

A view that contains a Windows list control (see CListCtrl). A list control displays icons and strings in a manner similar to the right-hand pane of the Windows 95 Explorer.

包含了视窗列表控件的视图(参见CListCtrl)。列表控件(可以)显示与视窗95资源管理器的右窗格具有相似风格的图标和字符串(列表)。

CTreeView

A view that contains a Windows tree control (see CTreeCtrl). A tree control displays icons and strings arranged in a hierarchy in a manner similar to the left-hand pane of the Windows 95 Explorer.

包含了视窗(树控件)的视图(参见CTreeCtrl)。树控件(可以)显示与视窗95资源管理器的左窗格具有相似风格的,按照(一种)层次排列的图标和字符串。

抱歉!评论已关闭.