📄 registeredinfpage.cpp
字号:
// RegisteredInfPage.cpp : implementation file
//
#include "stdafx.h"
#include "StudentInf.h"
#include "RegisteredInfPage.h"
#include "StudentInfWizard.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRegisteredInfPage property page
IMPLEMENT_DYNCREATE(CRegisteredInfPage, CPropertyPage)
CRegisteredInfPage::CRegisteredInfPage() : CPropertyPage(CRegisteredInfPage::IDD)
{
//{{AFX_DATA_INIT(CRegisteredInfPage)
m_RegisteredInf = _T("");
//}}AFX_DATA_INIT
}
CRegisteredInfPage::~CRegisteredInfPage()
{
}
void CRegisteredInfPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CRegisteredInfPage)
DDX_Text(pDX, IDC_REGISTERED_INF, m_RegisteredInf);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CRegisteredInfPage, CPropertyPage)
//{{AFX_MSG_MAP(CRegisteredInfPage)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CRegisteredInfPage message handlers
BOOL CRegisteredInfPage::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
BOOL result = CPropertyPage::OnSetActive();
if(result== TRUE)
{
CStudentInfWizard *parent = (CStudentInfWizard *)GetParent();
parent->SetWizardButtons(PSWIZB_BACK|PSWIZB_FINISH);
m_RegisteredInf="";
m_RegisteredInf+=parent->m_PersonInf.GetString();
m_RegisteredInf+=parent->m_ScoreRegister.GetString(); //前三个属性页的属性成员中信息数据的格式化组合
UpdateData(FALSE);//在当前属性页的控件IDC_REGISTERED_INF中显示所有输入信息
}
return result;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -