📄 page3.cpp
字号:
// Page3.cpp : implementation file
//
#include "stdafx.h"
#include "Register.h"
#include "Page3.h"
#include "WizardSheet.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)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPage3 message handlers
BOOL CPage3::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
CPropertySheet *parent=(CPropertySheet *)GetParent();
parent->SetWizardButtons(PSWIZB_FINISH|PSWIZB_BACK);
CString str;
str+="姓名:";
str+=((CWizardSheet *)parent)->m_page1.m_strXName;
str+="\r性别:";
str+=(((CWizardSheet *)parent)->m_page2.m_bMale==0?"男":"女");
SetDlgItemText(IDC_STATIC1,str);
return CPropertyPage::OnSetActive();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -