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

📄 cedtdocdictionary.cpp

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


static UINT nTotalSize = 0U;


BOOL CCedtDoc::LoadDictionary()
{
	CString szCedtDicPath = CCedtApp::m_szInstallDirectory + "\\cedt.dic";
	CString szUserDicPath = CCedtApp::m_szInstallDirectory + "\\user.dic";

	CFile file(szCedtDicPath, CFile::modeRead); CWaitCursor wait;
	nTotalSize = file.GetLength(); file.Close();

	CMainFrame * pMainFrame = (CMainFrame *)AfxGetMainWnd();
	pMainFrame->BeginProgress("Loading Dictionary...");

	if( ! m_clsDictionary.FileLoad(szCedtDicPath, LoadingProgress) ) return FALSE;
	if( ! m_clsDictionary.FileLoad(szUserDicPath) ) return FALSE;

	pMainFrame->EndProgress();
	m_bDictionaryLoaded = TRUE;

	return TRUE;
}

BOOL CCedtDoc::LoadingProgress(UINT nTotalRead)
{
	CMainFrame * pMainFrame = (CMainFrame *)AfxGetMainWnd();
	if( nTotalSize > 0 ) pMainFrame->SetProgress( 100U * nTotalRead / nTotalSize );
	else pMainFrame->SetProgress( 100 );

	return TRUE;
}

⌨️ 快捷键说明

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