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

📄 advcodeview.cpp

📁 一个PLX教学编译器IDE
💻 CPP
字号:

#include "stdafx.h"
#include "AdvCodeView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

CCodeView::CCodeView()
{
	m_brBackGround.CreateSolidBrush(RGB(255,255,255));
}

CCodeView::~CCodeView()
{
	m_brBackGround.DeleteObject();
}

BEGIN_MESSAGE_MAP(CCodeView, CEdit)
	//{{AFX_MSG_MAP(CCodeView)
	ON_WM_CTLCOLOR_REFLECT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

HBRUSH CCodeView::CtlColor(CDC* pDC, UINT nCtlColor) 
{	
	return m_brBackGround;
}

void CCodeView::AddText(LPCTSTR strError, int errorLine)
{
    m_strWndText += (CString(strError) + CString(_T("\r\n")));	
    SetWindowText(m_strWndText);
}

void CCodeView::Clear()
{
    m_strWndText = _T("");
}

⌨️ 快捷键说明

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