gusucode.com > 基于VC编程界面编程高级应用技术源码程序 > VC界面编程高级应用技术/code/1/DevDemo/TreeDoc2.cpp

    // TreeDoc2.cpp : implementation file
//

#include "stdafx.h"
#include "DevDemo.h"
#include "TreeDoc2.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTreeDoc2

IMPLEMENT_DYNCREATE(CTreeDoc2, CDocument)

CTreeDoc2::CTreeDoc2()
{
}

BOOL CTreeDoc2::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	return TRUE;
}

CTreeDoc2::~CTreeDoc2()
{
}


BEGIN_MESSAGE_MAP(CTreeDoc2, CDocument)
	//{{AFX_MSG_MAP(CTreeDoc2)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTreeDoc2 diagnostics

#ifdef _DEBUG
void CTreeDoc2::AssertValid() const
{
	CDocument::AssertValid();
}

void CTreeDoc2::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CTreeDoc2 serialization

void CTreeDoc2::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CTreeDoc2 commands