// ViewerDoc.cpp : implementation of the CViewerDoc class // #include "stdafx.h" #include "Viewer.h" #include "ViewerDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CViewerDoc IMPLEMENT_DYNCREATE(CViewerDoc, CDocument) BEGIN_MESSAGE_MAP(CViewerDoc, CDocument) END_MESSAGE_MAP() // CViewerDoc construction/destruction CViewerDoc::CViewerDoc() { // TODO: add one-time construction code here } CViewerDoc::~CViewerDoc() { } BOOL CViewerDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } // CViewerDoc serialization void CViewerDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } // CViewerDoc diagnostics #ifdef _DEBUG void CViewerDoc::AssertValid() const { CDocument::AssertValid(); } void CViewerDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG // CViewerDoc commands