page2.cpp

来自「讲mfc的书」· C++ 代码 · 共 54 行

CPP
54
字号
// Page2.cpp : implementation file
//

#include "stdafx.h"
#include "wiz.h"
#include "Page2.h"

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

/////////////////////////////////////////////////////////////////////////////
// Page2 property page

IMPLEMENT_DYNCREATE(Page2, CPropertyPage)

Page2::Page2() : CPropertyPage(Page2::IDD)
{
	//{{AFX_DATA_INIT(Page2)
	m_quest = _T("");
	//}}AFX_DATA_INIT
}

Page2::~Page2()
{
}

void Page2::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Page2)
	DDX_Text(pDX, IDC_QUEST, m_quest);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// Page2 message handlers

BOOL Page2::OnSetActive() 
{
	CPropertySheet *sheet=(CPropertySheet *)GetParent();
	sheet->SetWizardButtons(PSWIZB_NEXT|PSWIZB_BACK);	
	return CPropertyPage::OnSetActive();
}

⌨️ 快捷键说明

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