📄 prop4.cpp
字号:
// Prop4.cpp : implementation file
//
#include "stdafx.h"
#include "Test.h"
#include "Prop4.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CProp4 property page
IMPLEMENT_DYNCREATE(CProp4, CPropertyPage)
CProp4::CProp4() : CPropertyPage(CProp4::IDD)
{
//{{AFX_DATA_INIT(CProp4)
m_question7 = -1;
m_question8 = -1;
//}}AFX_DATA_INIT
}
CProp4::~CProp4()
{
}
void CProp4::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CProp4)
DDX_Radio(pDX, IDC_RADIO1, m_question7);
DDX_Radio(pDX, IDC_RADIO4, m_question8);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CProp4, CPropertyPage)
//{{AFX_MSG_MAP(CProp4)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CProp4 message handlers
BOOL CProp4::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
((CPropertySheet*)GetParent())->SetWizardButtons(PSWIZB_BACK|PSWIZB_FINISH);
return CPropertyPage::OnSetActive();
}
BOOL CProp4::OnWizardFinish()
{
// TODO: Add your specialized code here and/or call the base class
// int index;
// index=((CComboBox*)GetDlgItem(IDC_COMBO1))->GetCurSel();//GetCurSel()函数是用来获得一个索引值
// ((CComboBox*)GetDlgItem(IDC_COMBO1))->GetLBText(index,m_strSalary);
UpdateData();
if(m_question7 == -1)
{
MessageBox("请选择第七道题目!");
return -1;
}
if(m_question8 == -1)
{
MessageBox("请选择第八道题目!");
return -1;
}
return CPropertyPage::OnWizardFinish();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -