advoutview.cpp

来自「一个PLX教学编译器IDE」· C++ 代码 · 共 45 行

CPP
45
字号

#include "stdafx.h"
#include "AdvOutView.h"

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

CResultView::CResultView()
{
	m_brBackGround.CreateSolidBrush(RGB(255,255,255));
	m_nTextLines = 0;
}

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

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

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

void CResultView::AddText(LPCTSTR strInfo,int index)
{  
	m_strWndText += (CString(strInfo) + CString(_T("\r\n")));	
    SetWindowText(m_strWndText);
	LineScroll(m_nTextLines++);	
}

void CResultView::ClearText()
{
    m_strWndText = _T("");
	m_nTextLines = 0;
}

⌨️ 快捷键说明

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