www.pudn.com > c02 vc6.rar > FileTreeDoc.cpp


// FileTreeDoc.cpp : implementation of the CFileTreeDoc class 
// 
 
#include "stdafx.h" 
#include "C02IDE.h" 
 
#include "FileTreeDoc.h" 
#include "FileTreeView.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CFileTreeDoc 
 
IMPLEMENT_DYNCREATE(CFileTreeDoc, CDocument) 
 
BEGIN_MESSAGE_MAP(CFileTreeDoc, CDocument) 
	//{{AFX_MSG_MAP(CFileTreeDoc) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CFileTreeDoc construction/destruction 
 
CFileTreeDoc::CFileTreeDoc() 
{ 
	// TODO: add one-time construction code here 
 
} 
 
CFileTreeDoc::~CFileTreeDoc() 
{ 
} 
 
BOOL CFileTreeDoc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: add reinitialization code here 
	// (SDI documents will reuse this document) 
 
	return TRUE; 
} 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CFileTreeDoc serialization 
 
void CFileTreeDoc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
	} 
	else 
	{ 
		// TODO: add loading code here 
	} 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CFileTreeDoc diagnostics 
 
#ifdef _DEBUG 
void CFileTreeDoc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void CFileTreeDoc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CFileTreeDoc commands 
 
void CFileTreeDoc::UpdateTabView() 
{ 
//	if(!m_viewList.IsEmpty()) { 
//		((CFileTreeView*)m_viewList.GetHead())->UpdateView(); 
//	} 
}