Leaked source code of windows server 2003
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.

106 lines
2.1 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: CYSWizardPage.h
  4. //
  5. // Synopsis: Declares the base class for the wizard
  6. // pages used for CYS. It is a subclass
  7. // of WizardPage found in Burnslib
  8. //
  9. // History: 02/03/2001 JeffJon Created
  10. #ifndef __CYS_CYSWIZARDPAGE_H
  11. #define __CYS_CYSWIZARDPAGE_H
  12. // This brush is defined in cys.cpp and
  13. // is created to override the default background
  14. // window color. CYSWizardPage returns this from
  15. // the OnCtlColor* virtual functions.
  16. extern HBRUSH brush;
  17. class CYSWizardPage : public WizardPage
  18. {
  19. public:
  20. // Constructor
  21. CYSWizardPage(
  22. int dialogResID,
  23. int titleResID,
  24. int subtitleResID,
  25. PCWSTR pageHelpString = 0,
  26. bool hasHelp = true,
  27. bool isInteriorPage = true);
  28. // Destructor
  29. virtual ~CYSWizardPage();
  30. virtual
  31. void
  32. OnInit();
  33. virtual
  34. bool
  35. OnWizNext();
  36. virtual
  37. bool
  38. OnQueryCancel();
  39. virtual
  40. bool
  41. OnHelp();
  42. virtual
  43. HBRUSH
  44. OnCtlColorDlg(
  45. HDC deviceContext,
  46. HWND dialog);
  47. virtual
  48. HBRUSH
  49. OnCtlColorStatic(
  50. HDC deviceContext,
  51. HWND dialog);
  52. virtual
  53. HBRUSH
  54. OnCtlColorEdit(
  55. HDC deviceContext,
  56. HWND dialog);
  57. virtual
  58. HBRUSH
  59. OnCtlColorListbox(
  60. HDC deviceContext,
  61. HWND dialog);
  62. virtual
  63. HBRUSH
  64. OnCtlColorScrollbar(
  65. HDC deviceContext,
  66. HWND dialog);
  67. protected:
  68. virtual
  69. int
  70. Validate() = 0;
  71. const String
  72. GetHelpString() const { return helpString; }
  73. HBRUSH
  74. GetBackgroundBrush(HDC deviceContext);
  75. private:
  76. String helpString;
  77. // not defined: no copying allowed
  78. CYSWizardPage(const CYSWizardPage&);
  79. const CYSWizardPage& operator=(const CYSWizardPage&);
  80. };
  81. #endif // __CYS_CYSWIZARDPAGE_H