cedtdocview.cpp
来自「Crimson编辑器的英文版,完成从韩文版变成英文版的移植,并且附带可执行文件和」· C++ 代码 · 共 74 行
CPP
74 行
#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 + =
减小字号Ctrl + -
显示快捷键?