vbseditor.cpp
来自「一个类似VB代码编辑器.通过一个多文档模板导出」· C++ 代码 · 共 39 行
CPP
39 行
#include "stdafx.h"
#include "VbsEditor.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
BEGIN_MESSAGE_MAP(CEditorDLLApp, CWinApp)
END_MESSAGE_MAP()
CEditorDLLApp::CEditorDLLApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
CEditorDLLApp theApp;
// global function exports so we can be loaded by DLL
CEditorDocTemplate* DLLDocTemplate(CWinApp *APP)
{
// we have to be using the local resources when we do this as
// the CDocTemplate constructor calls LoadTemplate() before the
// vtable for virtual functions is setup and calls the base
// class implementation
AFX_MANAGE_STATE(AfxGetStaticModuleState()) ;
CEditorDocTemplate *pTemplate = NULL ;
pTemplate = new CEditorDocTemplate(
theApp.m_hInstance, // the APP's resource instance
// APP->m_hInstance,
IDI_ICO,
RUNTIME_CLASS(CDLLDocument),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CSCView));
return pTemplate ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?