1 // studioxDoc.cpp : implementation of the CstudioxDoc class 2 // 3 4 #include "stdafx.h" 5 #include "studiox.h" 6 7 #include "studioxDoc.h" 8 9 #ifdef _DEBUG 10 #define new DEBUG_NEW 11 #endif 12 13 14 // CstudioxDoc 15 IMPLEMENT_DYNCREATE(CstudioxDoc,CDocument)16IMPLEMENT_DYNCREATE(CstudioxDoc, CDocument) 17 18 BEGIN_MESSAGE_MAP(CstudioxDoc, CDocument) 19 END_MESSAGE_MAP() 20 21 22 // CstudioxDoc construction/destruction 23 24 CstudioxDoc::CstudioxDoc() 25 { 26 // TODO: add one-time construction code here 27 28 } 29 ~CstudioxDoc()30CstudioxDoc::~CstudioxDoc() 31 { 32 } 33 OnNewDocument()34BOOL CstudioxDoc::OnNewDocument() 35 { 36 if (!CDocument::OnNewDocument()) 37 return FALSE; 38 39 // TODO: add reinitialization code here 40 // (SDI documents will reuse this document) 41 42 return TRUE; 43 } 44 45 46 47 48 // CstudioxDoc serialization 49 Serialize(CArchive & ar)50void CstudioxDoc::Serialize(CArchive& ar) 51 { 52 if (ar.IsStoring()) 53 { 54 // TODO: add storing code here 55 } 56 else 57 { 58 // TODO: add loading code here 59 } 60 } 61 62 63 // CstudioxDoc diagnostics 64 65 #ifdef _DEBUG AssertValid() const66void CstudioxDoc::AssertValid() const 67 { 68 CDocument::AssertValid(); 69 } 70 Dump(CDumpContext & dc) const71void CstudioxDoc::Dump(CDumpContext& dc) const 72 { 73 CDocument::Dump(dc); 74 } 75 #endif //_DEBUG 76 77 78 // CstudioxDoc commands 79