34. MSDN中CView的解释The CView class provides the basic functionality for user-defined view classes. A view is attached to a document and acts as an intermediary between the document and the user: the view renders an image of the document on the screen or printer and interprets user input as operations upon the document. 34
35. CView的成员(member)GetDocument
MSDN : CView35
36. CDocumentDocument:A document represents the unit of data that the user typically opens with the File Open command and saves with the File Save command. 36
37. CDocumentclass CC1Doc : public CDocument
{
protected: // create from serialization only
CC1Doc();
DECLARE_DYNCREATE(CC1Doc)
// Attributes
public:
POINT m_pt;
MYLINES m_lines[100];
CGraData m_gra;
// Operations
public:
37