📄 prop3.cpp
字号:
// Prop3.cpp : implementation file
//
#include "stdafx.h"
#include "Test.h"
#include "Prop3.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CProp3 property page
IMPLEMENT_DYNCREATE(CProp3, CPropertyPage)
CProp3::CProp3() : CPropertyPage(CProp3::IDD)
{
//{{AFX_DATA_INIT(CProp3)
m_question5 = -1;
m_question6 = -1;
//}}AFX_DATA_INIT
}
CProp3::~CProp3()
{
}
void CProp3::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CProp3)
DDX_Radio(pDX, IDC_RADIO1, m_question5);
DDX_Radio(pDX, IDC_RADIO4, m_question6);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CProp3, CPropertyPage)
//{{AFX_MSG_MAP(CProp3)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CProp3 message handlers
BOOL CProp3::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
((CPropertySheet*)GetParent())->SetWizardButtons(PSWIZB_BACK|PSWIZB_NEXT);
return CPropertyPage::OnSetActive();
}
LRESULT CProp3::OnWizardNext()
{
// TODO: Add your specialized code here and/or call the base class
UpdateData();
if(m_question5 == -1)
{
MessageBox("请选择第五道题目!");
return -1;
}
if(m_question6 == -1)
{
MessageBox("请选择第六道题目!");
return -1;
}
return CPropertyPage::OnWizardNext();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -