www.pudn.com > CraftFTP_gb.rar > ConnectWizardPage6.cpp
// ConnectWizardPage6.cpp : implementation file
//
#include "stdafx.h"
#include "CraftFTP.h"
#include "ConnectWizard.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CConnectWizardPage6 property page
const DWORD CConnectWizardPage6::m_nHelpIDs[] =
{
IDC_CHECK_CONNECT_NOW, HIDC_CHECK_CONNECT_NOW,
0 , 0
};
IMPLEMENT_DYNCREATE(CConnectWizardPage6, CPropertyPageExt)
CConnectWizardPage6::CConnectWizardPage6() : CPropertyPageExt(CConnectWizardPage6::IDD)
{
//{{AFX_DATA_INIT(CConnectWizardPage6)
m_bConnectNow = FALSE;
//}}AFX_DATA_INIT
}
CConnectWizardPage6::~CConnectWizardPage6()
{
}
void CConnectWizardPage6::DoDataExchange(CDataExchange* pDX)
{
CPropertyPageExt::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CConnectWizardPage6)
DDX_Check(pDX, IDC_CHECK_CONNECT_NOW, m_bConnectNow);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CConnectWizardPage6, CPropertyPageExt)
//{{AFX_MSG_MAP(CConnectWizardPage6)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CConnectWizardPage6 message handlers
BOOL CConnectWizardPage6::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
CPropertySheet * pSheet = (CPropertySheet*)GetParent();
ASSERT_KINDOF(CPropertySheet, pSheet);
pSheet->SetWizardButtons(PSWIZB_BACK|PSWIZB_NEXT|PSWIZB_FINISH);
return CPropertyPageExt::OnSetActive();
}
BOOL CConnectWizardPage6::OnWizardFinish()
{
// TODO: Add your specialized code here and/or call the base class
UpdateData();
CConnectWizard * pWizard = (CConnectWizard*)GetParent();
if(pWizard)
pWizard->OnWizardFinish();
return CPropertyPageExt::OnWizardFinish();
}