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.

63 lines
1.2 KiB

  1. // Copyright (c) 1997-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. class CYSWizardPage : public WizardPage
  13. {
  14. public:
  15. // Constructor
  16. CYSWizardPage(
  17. int dialogResID,
  18. int titleResID,
  19. int subtitleResID,
  20. PCWSTR pageHelpString = 0,
  21. bool hasHelp = true,
  22. bool isInteriorPage = true);
  23. // Destructor
  24. virtual ~CYSWizardPage();
  25. virtual
  26. bool
  27. OnWizNext();
  28. virtual
  29. bool
  30. OnQueryCancel();
  31. virtual
  32. bool
  33. OnHelp();
  34. protected:
  35. virtual
  36. int
  37. Validate() = 0;
  38. const String
  39. GetHelpString() const { return helpString; }
  40. private:
  41. String helpString;
  42. // not defined: no copying allowed
  43. CYSWizardPage(const CYSWizardPage&);
  44. const CYSWizardPage& operator=(const CYSWizardPage&);
  45. };
  46. #endif // __CYS_CYSWIZARDPAGE_H