wizarddlg.h
来自「数据库部署程序」· C头文件 代码 · 共 76 行
H
76 行
#pragma once
// CWizardDlg 对话框
#include "WizardPage.h"
class CWizardDlg : public CDialog
{
DECLARE_DYNAMIC(CWizardDlg)
public:
CWizardDlg (LPCTSTR lpszTemplate, CWnd* pParent = NULL);
CWizardDlg (UINT nIDTemplate, CWnd* pParent = NULL);
virtual ~CWizardDlg();
public:
void AddPage(CWizardPage* pPage, UINT nID);
void SetActivePageByResource(UINT nResourceID);
BOOL SetFirstPage();
void SetNextPage();
void EnableFinish(BOOL bEnable);
void EnableBack(BOOL bEnable);
void EnableNext(BOOL bEnable);
void EnableCancel(BOOL bEnable);
int GetActiveIndex() const;
int GetPageIndex(CWizardPage* pPage) const;
int GetPageCount();
CWizardPage* GetPage(int nPage) const;
BOOL SetActivePage(int nPage);
BOOL SetActivePage(CWizardPage* pPage);
void SetTitle(LPCTSTR lpszText);
void SetTitle(UINT nIDText);
void SetFinishText(LPCTSTR lpszText);
void SetFinishText(UINT nIDText);
protected:
BOOL ActivatePage(CWizardPage* pPage);
BOOL DeactivatePage();
void SetPlaceholderID(int nPlaceholderID);
CWizardPage* GetPageByResourceID(UINT nResourceID);
private:
void Init();
BOOL DestroyPage(CWizardPage* pPage);
CWizardPage* GetFirstPage();
CWizardPage* GetLastPage();
CWizardPage* GetActivePage() const;
CWizardPage* GetNextPage();
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNewWizDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CNewWizDialog)
afx_msg void OnDestroy();
afx_msg void OnWizardFinish();
afx_msg void OnWizardBack();
afx_msg void OnWizardNext();
afx_msg void OnCancel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
CObList m_PageList; // CWizarePage对象列表
UINT m_nPlaceholderID; // control ID for the palceholder
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?