GraphicDoc.cpp
上传用户:mcdz888
上传日期:2022-08-05
资源大小:118k
文件大小:2k
- // GraphicDoc.cpp : implementation of the CGraphicDoc class
- //
- #include "stdafx.h"
- #include "Graphic.h"
- #include "GraphicDoc.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CGraphicDoc
- IMPLEMENT_DYNCREATE(CGraphicDoc, CDocument)
- BEGIN_MESSAGE_MAP(CGraphicDoc, CDocument)
- //{{AFX_MSG_MAP(CGraphicDoc)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CGraphicDoc construction/destruction
- CGraphicDoc::CGraphicDoc()
- {
- // TODO: add one-time construction code here
- }
- CGraphicDoc::~CGraphicDoc()
- {
- }
- BOOL CGraphicDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CGraphicDoc serialization
- void CGraphicDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // CGraphicDoc diagnostics
- #ifdef _DEBUG
- void CGraphicDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CGraphicDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CGraphicDoc commands