?? advcodeview.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 + -