page3.cpp

来自「《VC++ 编程技巧与示例 .rar》各个示例代码绝对可用」· C++ 代码 · 共 68 行

CPP
68
字号
// Page3.cpp : implementation file
//

#include "stdafx.h"
#include "PSWTest.h"
#include "Page3.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPage3 property page

IMPLEMENT_DYNCREATE(CPage3, CPropertyPage)

CPage3::CPage3() : CPropertyPage(CPage3::IDD)
{
	//{{AFX_DATA_INIT(CPage3)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CPage3::~CPage3()
{
}

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


BEGIN_MESSAGE_MAP(CPage3, CPropertyPage)
	//{{AFX_MSG_MAP(CPage3)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPage3 message handlers

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

BOOL CPage3::OnWizardFinish() 
{
	// TODO: Add your specialized code here and/or call the base class
	GetDlgItemText(IDC_EDIT_CAREER,m_Career);
	return CPropertyPage::OnWizardFinish();
}

LRESULT CPage3::OnWizardBack() 
{
	// TODO: Add your specialized code here and/or call the base class
	SetDlgItemText(IDC_EDIT_CAREER,"");
	return CPropertyPage::OnWizardBack();
}

⌨️ 快捷键说明

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