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

📄 examinedialog.cpp

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

#include "stdafx.h"
#include "quincy.h"
#include "ExamineDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CExamineDialog dialog


CExamineDialog::CExamineDialog(CWnd* pParent)
	: CDialog(CExamineDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CExamineDialog)
	m_strExpression = _T("");
	m_strNewValue = _T("");
	//}}AFX_DATA_INIT
}


void CExamineDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CExamineDialog)
	DDX_Text(pDX, IDC_EXAMINE_VARIABLE, m_strExpression);
	DDX_Text(pDX, IDC_EXAMINE_NEWVALUE, m_strNewValue);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CExamineDialog, CDialog)
	//{{AFX_MSG_MAP(CExamineDialog)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CExamineDialog message handlers

void CExamineDialog::OnOK() 
{
	UpdateData(true);
	if (m_strExpression.IsEmpty())
		CDialog::OnOK();
	else	{
		CString strVarValue;
		// ---- if any change, update the variable
		if (!m_strNewValue.IsEmpty())
			theApp.SetVariableValue(m_strExpression, m_strNewValue);
		// ---- get the variable's value and display it
		CWnd* pWnd = GetDlgItem(IDC_EXAMINE_VALUE);
		ASSERT(pWnd != 0);
		theApp.GetVariableValue(m_strExpression, pWnd);
	}
}

⌨️ 快捷键说明

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