文档详情

vc序列化问题.doc

发布:2017-12-10约2.01万字共13页下载文档
文本预览下载声明
vc序列化问题(serialize)_xuesheng雪圣_ 文档与序列化 一、文档的基本特征 文档类文件是从cdocument继承而来的。 the cdocument class provides the basic functionality for user-defined document classes. a document represents the unit of data that the user typically opens with the file open command and saves with the file save command. 翻译:文档类提供用户自定义文档类的基本功能。一个文档的打开命令和保存命令是数据单元特征。 cdocument supports standard operations such as creating a document, loading it, and saving it. the framework manipulates documents using the interface defined by cdocument. 翻译:文档类支持标准操作有:创建文档,载入文档,和保存。框架界面使用由文档类定义的界面。 an application can support more than one type of document; for example, an application might support both spreadsheets and text documents. each type of document has an associated document template; the document template specifies what resources (for example, menu, icon, or accelerator table) are used for that type of document. each document contains a pointer to its associated cdoctemplate object. 翻译:一个应用程序可以支持多于一种类型的文档;例如,一个应用程序可能同时支持电子表格和普通文本文档。每一种类型的文档有一种关联文档模板;文档模板指定了(例如,菜单,图标,或者加速表格)使用这些类型的文档。每个文档包含一个指针指向关联的模板对象。 users interact with a document through the cview object(s) associated with it. a view renders an image of the document in a frame window and interprets user input as operations on the document. a document can have multiple views associated with it. when the user opens a window on a document, the framework creates a view and attaches it to the document. the document template specifies what type of view and frame window are used to display each type of document. 翻译:用户将一个文档和一个视类对象想关联起来。一个视类扮演一个嵌入在文档框架内的图像,在文档内解释用户的输入操作。一个文档可以有多个视类与其关联。当用户在一个文档上打开一个窗体,框架创造一个视图,把它放在文档上。文档模板指定适合于用户文档类型的相同类的视图和框架窗口用来显示用户打开的文件。 documents are part of the frameworks standard command routing and consequently receive commands from standard user-interface components (such as the file save menu item). a document receives commands forwarded by the active view. if the document doesnt handle a given command, it forwards the comm
显示全部
相似文档