www.gusucode.com > 基于VC编程界面编程高级应用技术源码程序 > VC界面编程高级应用技术/code/1/DevDemo/TreeDoc1.cpp
// TreeDoc1.cpp : implementation file // #include "stdafx.h" #include "DevDemo.h" #include "TreeDoc1.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTreeDoc1 IMPLEMENT_DYNCREATE(CTreeDoc1, CDocument) CTreeDoc1::CTreeDoc1() { } BOOL CTreeDoc1::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; return TRUE; } CTreeDoc1::~CTreeDoc1() { } BEGIN_MESSAGE_MAP(CTreeDoc1, CDocument) //{{AFX_MSG_MAP(CTreeDoc1) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTreeDoc1 diagnostics #ifdef _DEBUG void CTreeDoc1::AssertValid() const { CDocument::AssertValid(); } void CTreeDoc1::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CTreeDoc1 serialization void CTreeDoc1::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CTreeDoc1 commands