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

📄 propxiugai.cpp

📁 这个是我用mfc写的一个pl0的编译器
💻 CPP
字号:
// propxiugai.cpp : implementation file
//

#include "stdafx.h"
#include "MFCpl0.h"
#include "propxiugai.h"

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

/////////////////////////////////////////////////////////////////////////////
// Cpropxiugai property page

IMPLEMENT_DYNCREATE(Cpropxiugai, CPropertyPage)

Cpropxiugai::Cpropxiugai() : CPropertyPage(Cpropxiugai::IDD)
{
	//{{AFX_DATA_INIT(Cpropxiugai)
	m_edit1 = _T("");
	//}}AFX_DATA_INIT
}

Cpropxiugai::~Cpropxiugai()
{
}

void Cpropxiugai::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cpropxiugai)
	DDX_Text(pDX, IDC_EDIT1, m_edit1);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// Cpropxiugai message handlers

void Cpropxiugai::xiugai(CString line)
{
	m_edit1=line;	
}

BOOL Cpropxiugai::OnSetActive() 
{

	((CPropertySheet*)GetParent())->SetWizardButtons(PSWIZB_FINISH);
	return CPropertyPage::OnSetActive();
}

BOOL Cpropxiugai::OnWizardFinish() 
{
	GetDlgItem(IDC_EDIT1)->GetWindowText(m_edit1);
	
	return CPropertyPage::OnWizardFinish();
}

⌨️ 快捷键说明

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