MyWizardPage1.cpp
资源名称:VC6.0.rar [点击查看]
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:5k
源码类别:
书籍源码
开发平台:
Visual C++
- // MyWizardPage1.cpp : implementation file
- //
- #include "stdafx.h"
- #include "resource.h"
- #include "MyWizardPage1.h"
- #include "MyWizardSheet.h"
- extern CMyWizardSheet* m_pWizardSheet; //全局变量声明
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
- IMPLEMENT_DYNCREATE(CMyWizardPage1, CPropertyPage)
- IMPLEMENT_DYNCREATE(CMyWizardPage2, CPropertyPage)
- IMPLEMENT_DYNCREATE(CMyWizardPage3, CPropertyPage)
- IMPLEMENT_DYNCREATE(CMyWizardPage4, CPropertyPage)
- IMPLEMENT_DYNCREATE(CMyWizardPage5, CPropertyPage)
- /////////////////////////////////////////////////////////////////////////////
- // CMyWizardPage1 property page
- CMyWizardPage1::CMyWizardPage1() : CPropertyPage(CMyWizardPage1::IDD)
- {
- //{{AFX_DATA_INIT(CMyWizardPage1)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CMyWizardPage1::~CMyWizardPage1()
- {
- }
- void CMyWizardPage1::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMyWizardPage1)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CMyWizardPage1, CPropertyPage)
- //{{AFX_MSG_MAP(CMyWizardPage1)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMyWizardPage2 property page
- CMyWizardPage2::CMyWizardPage2() : CPropertyPage(CMyWizardPage2::IDD)
- {
- //{{AFX_DATA_INIT(CMyWizardPage2)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CMyWizardPage2::~CMyWizardPage2()
- {
- }
- void CMyWizardPage2::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMyWizardPage2)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CMyWizardPage2, CPropertyPage)
- //{{AFX_MSG_MAP(CMyWizardPage2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMyWizardPage3 property page
- CMyWizardPage3::CMyWizardPage3() : CPropertyPage(CMyWizardPage3::IDD)
- {
- //{{AFX_DATA_INIT(CMyWizardPage3)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CMyWizardPage3::~CMyWizardPage3()
- {
- }
- void CMyWizardPage3::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMyWizardPage3)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CMyWizardPage3, CPropertyPage)
- //{{AFX_MSG_MAP(CMyWizardPage3)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMyWizardPage4 property page
- CMyWizardPage4::CMyWizardPage4() : CPropertyPage(CMyWizardPage4::IDD)
- {
- //{{AFX_DATA_INIT(CMyWizardPage4)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CMyWizardPage4::~CMyWizardPage4()
- {
- }
- void CMyWizardPage4::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMyWizardPage4)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CMyWizardPage4, CPropertyPage)
- //{{AFX_MSG_MAP(CMyWizardPage4)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMyWizardPage5 property page
- CMyWizardPage5::CMyWizardPage5() : CPropertyPage(CMyWizardPage5::IDD)
- {
- //{{AFX_DATA_INIT(CMyWizardPage5)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CMyWizardPage5::~CMyWizardPage5()
- {
- }
- void CMyWizardPage5::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMyWizardPage5)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CMyWizardPage5, CPropertyPage)
- //{{AFX_MSG_MAP(CMyWizardPage5)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- BOOL CMyWizardPage1::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
- m_pWizardSheet->SetWizardButtons(PSWIZB_NEXT);//第一页只有“下一个”(Next)搜妞
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- BOOL CMyWizardPage2::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
- // TODO: Add extra initialization here
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- BOOL CMyWizardPage3::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
- // TODO: Add extra initialization here
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- BOOL CMyWizardPage4::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
- // TODO: Add extra initialization here
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- BOOL CMyWizardPage5::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
- m_pWizardSheet->SetWizardButtons(PSWIZB_FINISH|PSWIZB_BACK);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }