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.

81 lines
1.4 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. //
  3. // wizard page base class
  4. //
  5. // 12-15-97 sburns
  6. #ifndef WIZPAGE_HPP_INCLUDED
  7. #define WIZPAGE_HPP_INCLUDED
  8. // A version of PropertyPage for wizards, for use with the Burnslib::Wizard
  9. // class, facilitates bookkeeping for page transistions and style settings.
  10. class WizardPage : public PropertyPage
  11. {
  12. friend class Wizard;
  13. public:
  14. // no publics. This is is intended to be used solely as a base class.
  15. protected:
  16. WizardPage(
  17. unsigned dialogResID,
  18. unsigned titleResID,
  19. unsigned subtitleResID,
  20. bool isInteriorPage = true,
  21. bool enableHelp = false);
  22. virtual ~WizardPage();
  23. Wizard&
  24. GetWizard() const;
  25. // PropertyPage overrides
  26. // calls Wizard::Backtrack();
  27. virtual
  28. bool
  29. OnWizBack();
  30. private:
  31. // Create the page with wizard style flags, title & subtitle, etc.
  32. // Overridden from PropertyPage base class, and access adjusted to
  33. // private so that just the Wizard class can call it.
  34. virtual
  35. HPROPSHEETPAGE
  36. Create();
  37. // not defined: no copying allowed
  38. WizardPage(const WizardPage&);
  39. const WizardPage& operator=(const WizardPage&);
  40. bool hasHelp;
  41. bool isInterior;
  42. unsigned titleResId;
  43. unsigned subtitleResId;
  44. Wizard* wizard;
  45. };
  46. #endif // WIZPAGE_HPP_INCLUDED