1 /*---------------------------------------------------------------------------* 2 Project: HIO2 demos - multi 3 File: nultiDoc.cpp 4 5 (C)2005 HUDSON SOFT 6 7 $Header: /home/cvsroot/SDK/build/demos/hio2demo/vc++/multi/multiDoc.cpp,v 1.3 2006/03/15 06:31:26 mitu Exp $ 8 9 $NoKeywords: $ 10 *---------------------------------------------------------------------------*/ 11 12 // multiDoc.cpp : implementation of the CMultiDoc class 13 // 14 15 #include "stdafx.h" 16 #include "multi.h" 17 18 #include "multiDoc.h" 19 20 #ifdef _DEBUG 21 #define new DEBUG_NEW 22 #endif 23 24 25 // CMultiDoc 26 IMPLEMENT_DYNCREATE(CMultiDoc,CDocument)27IMPLEMENT_DYNCREATE(CMultiDoc, CDocument) 28 29 BEGIN_MESSAGE_MAP(CMultiDoc, CDocument) 30 END_MESSAGE_MAP() 31 32 33 // CMultiDoc construction/destruction 34 35 CMultiDoc::CMultiDoc() 36 { 37 // TODO: add one-time construction code here 38 m_nHioIfID = HIO2IF_INVALID_ID; 39 } 40 ~CMultiDoc()41CMultiDoc::~CMultiDoc() 42 { 43 } 44 OnNewDocument()45BOOL CMultiDoc::OnNewDocument() 46 { 47 if (!CDocument::OnNewDocument()) 48 return FALSE; 49 50 // TODO: add reinitialization code here 51 // (SDI documents will reuse this document) 52 53 return TRUE; 54 } 55 56 57 58 59 // CMultiDoc serialization 60 Serialize(CArchive & ar)61void CMultiDoc::Serialize(CArchive& ar) 62 { 63 if (ar.IsStoring()) 64 { 65 // TODO: add storing code here 66 } 67 else 68 { 69 // TODO: add loading code here 70 } 71 } 72 73 74 // CMultiDoc diagnostics 75 76 #ifdef _DEBUG AssertValid() const77void CMultiDoc::AssertValid() const 78 { 79 CDocument::AssertValid(); 80 } 81 Dump(CDumpContext & dc) const82void CMultiDoc::Dump(CDumpContext& dc) const 83 { 84 CDocument::Dump(dc); 85 } 86 #endif //_DEBUG 87 88 89 // CMultiDoc commands 90