Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
2.7 KiB

  1. //
  2. // BookEndPage.h
  3. //
  4. #ifndef _BOOKENDPAGE_H
  5. #define _BOOKENDPAGE_H
  6. #include "Wizard.h"
  7. class CIISWizardBookEnd2 : public CIISWizardPage
  8. /*++
  9. Class Description:
  10. Welcome / Completion Page
  11. Public Interface:
  12. CIISWizardBookEnd2 : Constructor
  13. Notes:
  14. The resource template is not required. If not provided,
  15. a default template will be used.
  16. Special control IDs (on the dialog template):
  17. ---------------------------------------------
  18. IDC_STATIC_WZ_WELCOME - Welcome text displayed in bold
  19. IDC_STATIC_WZ_BODY - Body text will be placed here
  20. IDC_STATIC_WZ_CLICK - Click instructions.
  21. The click instructions default to something sensible, and body text
  22. will default to the error text on a failure page and to nothing on
  23. success and welcome page. The body text may include the %h/%H
  24. escape sequences for CError on a success/failure page.
  25. --*/
  26. {
  27. DECLARE_DYNCREATE(CIISWizardBookEnd2)
  28. public:
  29. //
  30. // Constructor for success/failure completion page
  31. //
  32. CIISWizardBookEnd2(
  33. HRESULT * phResult,
  34. UINT nIDWelcomeTxtSuccess = USE_DEFAULT_CAPTION,
  35. UINT nIDWelcomeTxtFailure = USE_DEFAULT_CAPTION,
  36. UINT nIDCaption = USE_DEFAULT_CAPTION,
  37. UINT * nIDBodyTxtSuccess = NULL,
  38. CString * pBodyTxtSuccess = NULL,
  39. UINT * nIDBodyTxtFailure = NULL,
  40. CString * pBodyTxtFailure = NULL,
  41. UINT nIDClickTxt = USE_DEFAULT_CAPTION,
  42. UINT nIDTemplate = 0
  43. );
  44. //
  45. // Constructor for a welcome page
  46. //
  47. CIISWizardBookEnd2(
  48. UINT nIDTemplate = 0,
  49. UINT nIDCaption = USE_DEFAULT_CAPTION,
  50. UINT * nIDBodyTxt = NULL,
  51. CString * pBodyTxt = NULL,
  52. UINT nIDWelcomeTxt = USE_DEFAULT_CAPTION,
  53. UINT nIDClickTxt = USE_DEFAULT_CAPTION
  54. );
  55. //
  56. // Dialog Data
  57. //
  58. protected:
  59. //{{AFX_DATA(CIISWizardBookEnd2)
  60. enum { IDD = IDD_WIZARD_BOOKEND };
  61. //}}AFX_DATA
  62. //
  63. // Overrides
  64. //
  65. protected:
  66. //{{AFX_VIRTUAL(CIISWizardBookEnd)
  67. public:
  68. virtual BOOL OnSetActive();
  69. //}}AFX_VIRTUAL
  70. //
  71. // Implementation
  72. //
  73. protected:
  74. // Generated message map functions
  75. //{{AFX_MSG(CPWTemplate)
  76. virtual BOOL OnInitDialog();
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. BOOL IsWelcomePage() const {return m_phResult == NULL;}
  80. BOOL IsTemplateAvailable() const {return m_bTemplateAvailable;}
  81. private:
  82. HRESULT * m_phResult;
  83. UINT m_nIDWelcomeTxtSuccess;
  84. UINT m_nIDWelcomeTxtFailure;
  85. UINT * m_pnIDBodyTxtSuccess;
  86. CString * m_pBodyTxtSuccess;
  87. UINT * m_pnIDBodyTxtFailure;
  88. CString * m_pBodyTxtFailure;
  89. UINT m_nIDClickTxt;
  90. BOOL m_bTemplateAvailable;
  91. CString m_strWelcome, m_strBody, m_strClick;
  92. };
  93. #endif //_BOOKENDPAGE_H