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

📄 errorlogdialog.cpp

📁 一个完全使用MFC框架开发的C++编译器的代码。功能十分强大可以编译大型程序。
💻 CPP
字号:
// ErrorLogDialog.cpp : implementation file
//

#include "stdafx.h"
#include "Quincy.h"
#include "ErrorLogDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CErrorLogDialog dialog


CErrorLogDialog::CErrorLogDialog(CWnd* pParent)
	: CDialog(CErrorLogDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CErrorLogDialog)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CErrorLogDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CErrorLogDialog)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CErrorLogDialog, CDialog)
	//{{AFX_MSG_MAP(CErrorLogDialog)
	ON_LBN_DBLCLK(IDC_ERRORLIST, OnDblclkErrorlist)
	ON_WM_CREATE()
	ON_WM_DESTROY()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CErrorLogDialog message handlers

void CErrorLogDialog::OnDblclkErrorlist() 
{
	OnOK();
}

void CErrorLogDialog::OnOK() 
{
	// -- get the current selection and send to CQuincyApp object
	CListBox* pList = static_cast<CListBox*>(GetDlgItem(IDC_ERRORLIST));
	ASSERT(pList != 0);
	theApp.SelectErrorLine(pList->GetCurSel());
}

int CErrorLogDialog::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;
	theApp.RestoreDialogWindowPosition("ErrorLog", this);
	return 0;
}

void CErrorLogDialog::OnDestroy() 
{
	theApp.SaveDialogWindowPosition("ErrorLog", this);
	CDialog::OnDestroy();
}

⌨️ 快捷键说明

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