// SMemDoc.cpp : implementation of the CSMemDoc class // #include "stdafx.h" #include "SMem.h" #include "SMemDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSMemDoc IMPLEMENT_DYNCREATE(CSMemDoc, CDocument) BEGIN_MESSAGE_MAP(CSMemDoc, CDocument) //{{AFX_MSG_MAP(CSMemDoc) // 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() ///////////////////////////////////////////////////////////////////////////// // CSMemDoc construction/destruction CSMemDoc::CSMemDoc() { // TODO: add one-time construction code here } CSMemDoc::~CSMemDoc() { } BOOL CSMemDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CSMemDoc serialization void CSMemDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CSMemDoc diagnostics #ifdef _DEBUG void CSMemDoc::AssertValid() const { CDocument::AssertValid(); } void CSMemDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CSMemDoc commands