⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cedtdocview.cpp

📁 Crimson编辑器的英文版,完成从韩文版变成英文版的移植,并且附带可执行文件和注册表文件,无需原先的安装包,是改写编辑器的最理想选择.
💻 CPP
字号:
#include "stdafx.h"
#include "cedtHeader.h"


CView * CCedtDoc::GetFirstView()
{
	POSITION pos = GetFirstViewPosition();
	if( pos ) return GetNextView( pos );
	else return NULL;
}

INT CCedtDoc::GetViewCount()
{
	INT nCount = 0; POSITION pos = GetFirstViewPosition();
	while( pos ) { GetNextView( pos ); nCount++; }
	return nCount;
}

void CCedtDoc::ReinitializeAllViews()
{
	POSITION pos = GetFirstViewPosition();
	while( pos ) {
		CCedtView * pView = (CCedtView *)GetNextView( pos );
		pView->Reinitialize();
	}
}

void CCedtDoc::UpdateMDIFileTab()
{
	CMainFrame * pMainFrame = (CMainFrame *)AfxGetMainWnd();
	POSITION pos = GetFirstViewPosition();
	while( pos ) {
		CCedtView * pView = (CCedtView *)GetNextView( pos );
		CChildFrame * pChild = (CChildFrame *)pView->GetParentFrame();
		pMainFrame->UpdateMDIFileTab( pChild );
	}
}

void CCedtDoc::FormatScreenText()
{
	POSITION pos = GetFirstViewPosition();
	while( pos ) {
		CCedtView * pView = (CCedtView *)GetNextView( pos );
		pView->FormatScreenText();
	}
}

void CCedtDoc::FormatScreenText(INT nIndex, INT nCount)
{
	POSITION pos = GetFirstViewPosition();
	while( pos ) {
		CCedtView * pView = (CCedtView *)GetNextView( pos );
		pView->FormatScreenText(nIndex, nCount);
	}
}

void CCedtDoc::RemoveScreenText(INT nIndex, INT nCount)
{
	POSITION pos = GetFirstViewPosition();
	while( pos ) {
		CCedtView * pView = (CCedtView *)GetNextView( pos );
		pView->RemoveScreenText(nIndex, nCount);
	}
}

void CCedtDoc::InsertScreenText(INT nIndex, INT nCount)
{
	POSITION pos = GetFirstViewPosition();
	while( pos ) {
		CCedtView * pView = (CCedtView *)GetNextView( pos );
		pView->InsertScreenText(nIndex, nCount);
	}
}

⌨️ 快捷键说明

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