1 // MFC_OSG_MDIDoc.cpp : implementation of the CMFC_OSG_MDIDoc class
2 //
3 
4 #include "stdafx.h"
5 #include "MFC_OSG_MDI.h"
6 
7 #include "MFC_OSG_MDIDoc.h"
8 
9 #ifdef _DEBUG
10 #define new DEBUG_NEW
11 #endif
12 
13 
14 // CMFC_OSG_MDIDoc
15 
IMPLEMENT_DYNCREATE(CMFC_OSG_MDIDoc,CDocument)16 IMPLEMENT_DYNCREATE(CMFC_OSG_MDIDoc, CDocument)
17 
18 BEGIN_MESSAGE_MAP(CMFC_OSG_MDIDoc, CDocument)
19 END_MESSAGE_MAP()
20 
21 
22 // CMFC_OSG_MDIDoc construction/destruction
23 
24 CMFC_OSG_MDIDoc::CMFC_OSG_MDIDoc()
25 {
26 }
27 
~CMFC_OSG_MDIDoc()28 CMFC_OSG_MDIDoc::~CMFC_OSG_MDIDoc()
29 {
30 }
31 
OnOpenDocument(LPCTSTR lpszPathName)32 BOOL CMFC_OSG_MDIDoc::OnOpenDocument(LPCTSTR lpszPathName)
33 {
34     m_csFileName = lpszPathName;
35 
36     if (!CDocument::OnOpenDocument(lpszPathName))
37       return FALSE;
38 
39     return TRUE;
40 }
41 
42 
43 // CMFC_OSG_MDIDoc serialization
44 
Serialize(CArchive & ar)45 void CMFC_OSG_MDIDoc::Serialize(CArchive& ar)
46 {
47     if (ar.IsStoring())
48     {
49         // TODO: add storing code here
50     }
51     else
52     {
53         // TODO: add loading code here
54     }
55 }
56 
57 
58 // CMFC_OSG_MDIDoc diagnostics
59 
60 #ifdef _DEBUG
AssertValid() const61 void CMFC_OSG_MDIDoc::AssertValid() const
62 {
63     CDocument::AssertValid();
64 }
65 
Dump(CDumpContext & dc) const66 void CMFC_OSG_MDIDoc::Dump(CDumpContext& dc) const
67 {
68     CDocument::Dump(dc);
69 }
70 #endif //_DEBUG
71 
72 
73 // CMFC_OSG_MDIDoc commands
74