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.

164 lines
3.6 KiB

  1. // Copyright 1995-1997 Microsoft Corporation. All Rights Reserved.
  2. #if _MSC_VER > 1000
  3. #pragma once
  4. #endif
  5. #ifndef _INFOTYPE_H_
  6. #define _INFOTYPE_H_
  7. #include "cprop.h"
  8. #include "sitemap.h"
  9. #include "cinfotyp.h"
  10. #include "csubset.h"
  11. #include "secwin.h"
  12. #ifndef IDR_MAINFRAME
  13. #include "resource.h"
  14. #endif
  15. typedef struct {
  16. CInfoType *pInfoType;
  17. CSiteMap* pSiteMap;
  18. INFOTYPE* pInfoTypes;
  19. #if 0 // enable for subset filtering
  20. INFOTYPE* pExclusive;
  21. #endif
  22. INFOTYPE* pTypicalInfoTypes;
  23. int idDlgTemplate;
  24. BOOL fExclusive;
  25. int idNextPage;
  26. int idPreviousPage;
  27. int iCategory;
  28. INFOTYPE * pagebits; // the IT's included on a wizared page.
  29. BOOL fAll;
  30. BOOL fTypical;
  31. BOOL fCustom;
  32. } INFO_PARAM;
  33. class CInfoTypePageContents : public CPropPage
  34. {
  35. public:
  36. CInfoTypePageContents(
  37. #if 0 // enable for subset filtering
  38. #ifdef HHCTRL
  39. CExCollection* pTitleCol, INFO_PARAM* pInfoParam) : CPropPage(pInfoParam->idDlgTemplate)
  40. #else
  41. INFO_PARAM* pInfoParam) : CPropPage(pInfoParam->idDlgTemplate)
  42. #endif
  43. {
  44. memcpy(&m_InfoParam, pInfoParam, sizeof(INFO_PARAM));
  45. #ifdef HHCTRL
  46. m_pTitleCollection = pTitleCol;
  47. #endif
  48. }
  49. #else
  50. #ifdef HHCTRL
  51. CHtmlHelpControl* phhCtrl, INFO_PARAM* pInfoParam) : CPropPage(pInfoParam->idDlgTemplate)
  52. #else
  53. INFO_PARAM* pInfoParam) : CPropPage(pInfoParam->idDlgTemplate)
  54. #endif
  55. { memcpy(&m_InfoParam, pInfoParam, sizeof(INFO_PARAM)); }
  56. #endif
  57. BOOL OnNotify(UINT code);
  58. void OnSelChange(UINT id);
  59. protected:
  60. #if 0 // enable for subset filtering
  61. void FillInfoTypeListBox(INFOTYPE *);
  62. void SaveInfoTypes(INFOTYPE *);
  63. #else
  64. void FillInfoTypeListBox(void);
  65. void SaveInfoTypes(void);
  66. #endif
  67. void flipBits( INFOTYPE * pInfoType );
  68. INFO_PARAM m_InfoParam;
  69. #ifdef HHCTRL
  70. CExCollection *m_pTitleCollection;
  71. #endif
  72. };
  73. class CWizardIntro : public CPropPage
  74. {
  75. public:
  76. #if 0 // enable for subset filtering
  77. #ifdef HHCTRL
  78. CWizardIntro(CExCollection* pTitleCol, INFO_PARAM* pInfoParam) : CPropPage(CWizardIntro::IDD)
  79. #else
  80. CWizardIntro(INFO_PARAM* pInfoParam) : CPropPage(CWizardIntro::IDD)
  81. #endif
  82. { m_pInfoParam = pInfoParam;
  83. #ifdef HHCTRL
  84. m_pTitleCollection = pTitleCol;
  85. #endif
  86. }
  87. #else
  88. #ifdef HHCTRL
  89. CWizardIntro(CHtmlHelpControl* phhCtrl, INFO_PARAM* pInfoParam) : CPropPage(CWizardIntro::IDD)
  90. #else
  91. CWizardIntro(INFO_PARAM* pInfoParam) : CPropPage(CWizardIntro::IDD)
  92. #endif
  93. { m_pInfoParam = pInfoParam; }
  94. #endif
  95. BOOL OnNotify(UINT code);
  96. void OnButton(UINT id);
  97. #if 0 // enable for subset filtering
  98. void OnSelChange(UINT id); // for the subset combo box.
  99. #endif
  100. enum { IDD = IDWIZ_INFOTYPE_INTRO };
  101. INFO_PARAM* m_pInfoParam;
  102. #ifdef HHCTRL
  103. CExCollection *m_pTitleCollection;
  104. #endif
  105. };
  106. class CInfoWizFinish : public CPropPage
  107. {
  108. public:
  109. #if 0 // enable for subset filtering
  110. #ifdef HHCTRL
  111. CInfoWizFinish(CHHWinType* phh, INFO_PARAM* pInfoParam) : CPropPage(CInfoWizFinish::IDD)
  112. #else
  113. // Specify NULL to keep cprop.AddPage happy
  114. CInfoWizFinish(INFO_PARAM* pInfoParam) : CPropPage(CInfoWizFinish::IDD)
  115. #endif
  116. { m_pInfoParam = pInfoParam;
  117. #ifdef HHCTRL
  118. m_phh = phh;
  119. #endif
  120. }
  121. #else
  122. #ifdef HHCTRL
  123. CInfoWizFinish(CHtmlHelpControl* phhCtrl, INFO_PARAM* pInfoParam) : CPropPage(CInfoWizFinish::IDD)
  124. #else
  125. // Specify NULL to keep cprop.AddPage happy
  126. CInfoWizFinish(INFO_PARAM* pInfoParam) : CPropPage(CInfoWizFinish::IDD)
  127. #endif
  128. { m_pInfoParam = pInfoParam; }
  129. #endif
  130. #if 0 // enable for subset filtering
  131. void OnEditChange(UINT id);
  132. void OnButton(UINT id);
  133. #endif
  134. BOOL OnNotify(UINT code);
  135. enum { IDD = IDWIZ_INFOTYPE_FINISH };
  136. INFO_PARAM* m_pInfoParam;
  137. #ifdef HHCTRL
  138. CHHWinType* m_phh;
  139. #endif
  140. };
  141. #endif // _INFOTYPE_H_