www.gusucode.com > 一个左侧带树形菜单的VC++界面设计实例源码程序 > 一个左侧带树形菜单的VC++界面设计实例/IECtrlBar/IECtrlBar/IECtrlBarDoc.cpp

    // IECtrlBarDoc.cpp : implementation of the CIECtrlBarDoc class
// download by http://www.srcfans.com

#include "stdafx.h"
#include "IECtrlBar.h"

#include "IECtrlBarDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CIECtrlBarDoc

IMPLEMENT_DYNCREATE(CIECtrlBarDoc, CDocument)

BEGIN_MESSAGE_MAP(CIECtrlBarDoc, CDocument)
	//{{AFX_MSG_MAP(CIECtrlBarDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CIECtrlBarDoc construction/destruction

CIECtrlBarDoc::CIECtrlBarDoc()
{
	// TODO: add one-time construction code here

}

CIECtrlBarDoc::~CIECtrlBarDoc()
{
}

BOOL CIECtrlBarDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CIECtrlBarDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CIECtrlBarDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CIECtrlBarDoc commands