www.pudn.com > MiniFox.rar > Wizard.h, change:2004-08-31,size:5947b


#if !defined(AFX_WIZARD_H__A2C41A1E_A5AF_4F49_B3F5_289FB93E08CE__INCLUDED_) 
#define AFX_WIZARD_H__A2C41A1E_A5AF_4F49_B3F5_289FB93E08CE__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// Wizard.h : header file 
// 
#include "BrowseDirDialog.h"	// To show Browse For Folder dialog box 
 
typedef struct tagPAGELINK 
{ 
	int nNum; 
	CDialog* pDlg; 
	struct tagPAGELINK* Next; 
} PAGELINK; 
 
///////////////////////////////////////////////////////////////////////////// 
// CWizard dialog 
 
class CWizard : public CDialog 
{ 
// Construction 
public: 
	CWizard(CWnd* pParent = NULL); 
	CWizard(UINT nIDTemplate,CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CWizard) 
	enum { IDD = IDD_WIZARD }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CWizard) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual void SetWizButton( int nFlag ); 
	virtual void ShowPage(int nPos ); 
	PAGELINK* m_pPageLink; 
	int m_nCurPage; 
	int m_nPageCount; 
	CRect m_wndPageRect; 
	void AddPage( CDialog* pDialog, UINT nID ); 
public: 
	// Declare the struct to store the infomation provided by user: 
	struct AccInfo 
	{ 
		CString m_strAccName;		// account name for Foxmail to well manage 
		CString m_strMailPath;		// the directory to store mail data 
		CString m_strSenderName;	// the name of sender preceded the email address 
		CString m_strEmlAddr;		// E-mail address 
		CString m_strPOPServer;		// the address of the POP3 Server 
		CString m_strPOPAccount;	// account of the user on the POP3 Server 
		CString m_strPassword;		// password of the user on the POP3 Server 
		CString m_strSMTPServer;	// the address of the SMTP Server 
		int		m_bHotmail;			// whether it is a hotmail account 
		// The infomation in step 4 is not included here. 
		// Add data here: 
	} accInfo; 
 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CWizard) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnCancel(); 
	afx_msg void OnPrev(); 
	afx_msg void OnNext(); 
	afx_msg void OnFinish(); 
	afx_msg void OnDestroy(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
// CStep1 dialog 
 
class CStep1 : public CDialog 
{ 
// Construction 
public: 
	void UpdateAccInfo( struct CWizard::AccInfo& accInfo ); 
	bool CheckForNullValues( ); 
	CStep1(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CStep1) 
	enum { IDD = IDD_STEP1 }; 
	CString	m_strAccName; 
	CString	m_strMailPath; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CStep1) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CStep1) 
	afx_msg void OnBrowseForFolder(); 
	afx_msg void OnDefault(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
///////////////////////////////////////////////////////////////////////////// 
// CStep2 dialog 
 
class CStep2 : public CDialog 
{ 
// Construction 
public: 
	void UpdateAccInfo( struct CWizard::AccInfo& accInfo ); 
	bool CheckForNullValues( ); 
	CStep2(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CStep2) 
	enum { IDD = IDD_STEP2 }; 
	CString	m_strSenderName; 
	CString	m_strEmlAddr; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CStep2) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CStep2) 
		// NOTE: the ClassWizard will add member functions here 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
///////////////////////////////////////////////////////////////////////////// 
// CStep3 dialog 
 
class CStep3 : public CDialog 
{ 
// Construction 
public: 
	void UpdateAccInfo( struct CWizard::AccInfo& accInfo ); 
	bool CheckForNullValues(); 
	CStep3(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CStep3) 
	enum { IDD = IDD_STEP3 }; 
	CString	m_strPOPServer; 
	CString	m_strPOPAccount; 
	CString	m_strPassword; 
	CString	m_strSMTPServer; 
	int		m_bHotmail; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CStep3) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CStep3) 
	afx_msg void OnPop3(); 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnHotmail(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
///////////////////////////////////////////////////////////////////////////// 
// CStep4 dialog 
 
class CStep4 : public CDialog 
{ 
// Construction 
public: 
	void UpdateAccInfo( struct CWizard::AccInfo& accInfo); 
	CStep4(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CStep4) 
	enum { IDD = IDD_STEP4 }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CStep4) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CStep4) 
		// NOTE: the ClassWizard will add member functions here 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_WIZARD_H__A2C41A1E_A5AF_4F49_B3F5_289FB93E08CE__INCLUDED_)