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.

64 lines
1.1 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. class WizardPage : public PropertyPage
  9. {
  10. friend class Wizard;
  11. public:
  12. protected:
  13. WizardPage(
  14. unsigned dialogResID,
  15. unsigned titleResID,
  16. unsigned subtitleResID,
  17. bool isInteriorPage = true,
  18. bool enableHelp = false);
  19. virtual ~WizardPage();
  20. // calls Backtrack();
  21. virtual
  22. bool
  23. OnWizBack();
  24. Wizard&
  25. GetWizard() const;
  26. private:
  27. // Create the page with wizard style flags, title & subtitle, etc.
  28. // Overridden from PropertyPage base class, and access adjusted to
  29. // private so that just the Wizard class can call it.
  30. virtual
  31. HPROPSHEETPAGE
  32. Create();
  33. // not defined: no copying allowed
  34. WizardPage(const WizardPage&);
  35. const WizardPage& operator=(const WizardPage&);
  36. bool hasHelp;
  37. bool isInterior;
  38. unsigned titleResId;
  39. unsigned subtitleResId;
  40. Wizard* wizard;
  41. };
  42. #endif // WIZPAGE_HPP_INCLUDED