www.pudn.com > TOOLBarSample.rar > TOOLBarSampleDoc.cpp, change:2006-03-24,size:1882b


// TOOLBarSampleDoc.cpp : implementation of the CTOOLBarSampleDoc class 
// 
 
#include "stdafx.h" 
#include "TOOLBarSample.h" 
 
#include "TOOLBarSampleDoc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CTOOLBarSampleDoc 
 
IMPLEMENT_DYNCREATE(CTOOLBarSampleDoc, CDocument) 
 
BEGIN_MESSAGE_MAP(CTOOLBarSampleDoc, CDocument) 
	//{{AFX_MSG_MAP(CTOOLBarSampleDoc) 
		// 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() 
 
///////////////////////////////////////////////////////////////////////////// 
// CTOOLBarSampleDoc construction/destruction 
 
CTOOLBarSampleDoc::CTOOLBarSampleDoc() 
{ 
	// TODO: add one-time construction code here 
 
} 
 
CTOOLBarSampleDoc::~CTOOLBarSampleDoc() 
{ 
} 
 
BOOL CTOOLBarSampleDoc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: add reinitialization code here 
	// (SDI documents will reuse this document) 
 
	return TRUE; 
} 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CTOOLBarSampleDoc serialization 
 
void CTOOLBarSampleDoc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
	} 
	else 
	{ 
		// TODO: add loading code here 
	} 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CTOOLBarSampleDoc diagnostics 
 
#ifdef _DEBUG 
void CTOOLBarSampleDoc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void CTOOLBarSampleDoc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CTOOLBarSampleDoc commands