// ScrDoc.cpp : implementation of the CScrDoc class // #include "stdafx.h" #include "ScrDemo.h" #include "ScrDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CScrDoc IMPLEMENT_DYNCREATE(CScrDoc, CDocument) BEGIN_MESSAGE_MAP(CScrDoc, CDocument) //{{AFX_MSG_MAP(CScrDoc) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CScrDoc construction/destruction CScrDoc::CScrDoc() { // TODO: add one-time construction code here } CScrDoc::~CScrDoc() { } /* BOOL CScrDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; } */ ///////////////////////////////////////////////////////////////////////////// // CScrDoc serialization void CScrDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CScrDoc diagnostics #ifdef _DEBUG void CScrDoc::AssertValid() const { CDocument::AssertValid(); } void CScrDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG