MiniCADDoc.h
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:2k
- // MiniCADDoc.h : interface of the CMiniCADDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MINICADDOC_H__7F09879E_D806_11D2_8830_E0646867975D__INCLUDED_)
- #define AFX_MINICADDOC_H__7F09879E_D806_11D2_8830_E0646867975D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "MiniCAD.h"
- #include "MyDraw.h"
- #include "MyCommand.h"
- class CMiniCADDoc : public CDocument
- {
- protected: // create from serialization only
- CMiniCADDoc();
- DECLARE_DYNCREATE(CMiniCADDoc)
- // Attributes
- protected:
- CMiniCADApp* pApp;
- public:
- CFileInfo FileInfo;
- CMyOperate MyOperate;
- CMyCommand MyCommand;
- int DocumentIndex; //文档的序号
- // Operations
- public:
- BOOL SaveDocument();
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMiniCADDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual void OnCloseDocument();
- virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMiniCADDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMiniCADDoc)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MINICADDOC_H__7F09879E_D806_11D2_8830_E0646867975D__INCLUDED_)