1 // PofViewDoc.cpp : implementation of the CPofViewDoc class
7 #include "pofviewdoc.h"
14 static char THIS_FILE[] = __FILE__;
17 /////////////////////////////////////////////////////////////////////////////
20 IMPLEMENT_DYNCREATE(CPofViewDoc, CDocument)
22 BEGIN_MESSAGE_MAP(CPofViewDoc, CDocument)
23 //{{AFX_MSG_MAP(CPofViewDoc)
24 // NOTE - the ClassWizard will add and remove mapping macros here.
25 // DO NOT EDIT what you see in these blocks of generated code!
29 /////////////////////////////////////////////////////////////////////////////
30 // CPofViewDoc construction/destruction
32 CPofViewDoc::CPofViewDoc()
34 // TODO: add one-time construction code here
38 CPofViewDoc::~CPofViewDoc()
42 BOOL CPofViewDoc::OnNewDocument()
46 if (!CDocument::OnNewDocument())
49 // TODO: add reinitialization code here
50 // (SDI documents will reuse this document)
55 /////////////////////////////////////////////////////////////////////////////
56 // CPofViewDoc serialization
58 void CPofViewDoc::Serialize(CArchive& ar)
62 // TODO: add storing code here
66 // TODO: add loading code here
67 m_model_num = model_load((char *)LPCTSTR(ar.GetFile()->GetFilePath()), 0, NULL);
71 /////////////////////////////////////////////////////////////////////////////
72 // CPofViewDoc diagnostics
75 void CPofViewDoc::AssertValid() const
77 CDocument::AssertValid();
80 void CPofViewDoc::Dump(CDumpContext& dc) const
86 /////////////////////////////////////////////////////////////////////////////
87 // CPofViewDoc commands