filetreedoc.cpp

来自「类似vc的集成开发环境」· C++ 代码 · 共 91 行

CPP
91
字号
// 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();
//	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?