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

📄 scview.cpp

📁 一个类似VB代码编辑器.通过一个多文档模板导出
💻 CPP
字号:
// SCView.cpp : implementation of the CSCView class
//

#include "stdafx.h"
#include "SCView.h"
#include "DLLDocument.h"
#include "CCrystalEditView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSCView

IMPLEMENT_DYNCREATE(CSCView, CCrystalEditView)

BEGIN_MESSAGE_MAP(CSCView, CCrystalEditView)
	//{{AFX_MSG_MAP(CSCView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CCrystalEditView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CCrystalEditView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CCrystalEditView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSCView construction/destruction

CSCView::CSCView()
{
	// TODO: add construction code here

}

CSCView::~CSCView()
{
}

BOOL CSCView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CCrystalEditView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CSCView printing

BOOL CSCView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CSCView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CSCView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CSCView diagnostics
void CSCView::OnInitialUpdate() 
{
	CCrystalEditView::OnInitialUpdate();
	
//	SetFont(GetDocument()->m_lf);

//	CMDIChildWnd *pWnd=(CMDIChildWnd *)GetParentFrame(); 
//	pWnd->MDIMaximize(); 
}
CCrystalTextBuffer *CSCView::LocateTextBuffer()
{
	return &GetDocument()->m_xTextBuffer;
}

⌨️ 快捷键说明

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