prop4.cpp

来自「这个是我用mfc写的一个pl0的编译器」· C++ 代码 · 共 67 行

CPP
67
字号
// prop4.cpp : implementation file
//

#include "stdafx.h"
#include "MFCpl0.h"
#include "prop4.h"

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

/////////////////////////////////////////////////////////////////////////////
// Cprop4 property page

IMPLEMENT_DYNCREATE(Cprop4, CPropertyPage)

Cprop4::Cprop4() : CPropertyPage(Cprop4::IDD)
{
	//{{AFX_DATA_INIT(Cprop4)
	m_list = -1;
	//}}AFX_DATA_INIT
}

Cprop4::~Cprop4()
{
}

void Cprop4::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cprop4)
	DDX_Radio(pDX, IDC_RADIO1, m_list);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// Cprop4 message handlers

BOOL Cprop4::OnSetActive() 
{
	// TODO: Add your specialized code here and/or call the base class
	((CPropertySheet*)GetParent())->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH | PSWIZB_DISABLEDFINISH );
	return CPropertyPage::OnSetActive();
}

BOOL Cprop4::OnWizardFinish() 
{
	// TODO: Add your specialized code here and/or call the base class
		// TODO: Add your specialized code here and/or call the base class
	UpdateData();
	if(m_list==-1)
	{
		MessageBox("请你做出相应的选择!!");
		return FALSE;
	}
	return CPropertyPage::OnWizardFinish();
}

⌨️ 快捷键说明

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