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

📄 debugerpage.cpp

📁 混乱竞技场的全套代码,客户端资源可以网上搜
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -