www.gusucode.com > VC++将对话框做为MDI子窗口的示例程序-源码程序 > VC++将对话框做为MDI子窗口的示例程序-源码程序/code/TSMLDoc.cpp
//Download by http://www.NewXing.com // TSMLDoc.cpp : implementation of the CTSMLDoc class // #include "stdafx.h" #include "TSML.h" #include "TSMLSet.h" #include "TSMLDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTSMLDoc IMPLEMENT_DYNCREATE(CTSMLDoc, CDocument) BEGIN_MESSAGE_MAP(CTSMLDoc, CDocument) //{{AFX_MSG_MAP(CTSMLDoc) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTSMLDoc construction/destruction CTSMLDoc::CTSMLDoc() { // TODO: add one-time construction code here } CTSMLDoc::~CTSMLDoc() { } BOOL CTSMLDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CTSMLDoc serialization void CTSMLDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CTSMLDoc diagnostics #ifdef _DEBUG void CTSMLDoc::AssertValid() const { CDocument::AssertValid(); } void CTSMLDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CTSMLDoc commands