debugerpage.cpp

来自「混乱竞技场的全套代码,客户端资源可以网上搜」· C++ 代码 · 共 62 行

CPP
62
字号
// DebugerPage.cpp : implementation file
//

#include "stdafx.h"
#include "DebugerPage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDebugerPage property page

IMPLEMENT_DYNCREATE(CDebugerPage, CPropertyPage)

CDebugerPage::CDebugerPage() : CPropertyPage(CDebugerPage::IDD)
{
	//{{AFX_DATA_INIT(CDebugerPage)
	m_str_debug = _T("");
	//}}AFX_DATA_INIT
}

CDebugerPage::~CDebugerPage()
{
}

void CDebugerPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDebugerPage)
	DDX_Text(pDX, ID_EDIT_DEBUG, m_str_debug);
	DDV_MaxChars(pDX, m_str_debug, 9999999);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDebugerPage, CPropertyPage)
	//{{AFX_MSG_MAP(CDebugerPage)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDebugerPage message handlers

void CDebugerPage::OnAddLog(const char *time, const char *date, const char *log)
{
	UpdateData();
	m_str_debug	+= CString(time) + _T("\t") + CString(date) + _T("\x00d\n") + CString(log) + _T("\x00d\n") + _T("\x00d\n");
	UpdateData(false);
}

void CDebugerPage::OutputLog(const char* strLog)
{
	UpdateData();
	m_str_debug	+= CString(strLog) + _T("\x00d\n");
	UpdateData(false);
}

⌨️ 快捷键说明

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