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.

91 lines
1.9 KiB

  1. // Copyright (c) 2002 Microsoft Corporation
  2. //
  3. // File: InstallationProgressPage.h
  4. //
  5. // Synopsis: Declares the Installation Progress Page for the CYS
  6. // wizard. This page shows the progress of the installation
  7. // through a progress bar and changing text
  8. //
  9. // History: 01/16/2002 JeffJon Created
  10. #ifndef __CYS_SERVERATIONPROGRESSPAGE_H
  11. #define __CYS_SERVERATIONPROGRESSPAGE_H
  12. #include "CYSWizardPage.h"
  13. class InstallationProgressPage : public CYSWizardPage
  14. {
  15. public:
  16. // Constructor
  17. InstallationProgressPage();
  18. // This constructor is used by the UninstallProgressPage
  19. InstallationProgressPage(
  20. int dialogResID,
  21. int titleResID,
  22. int subtitleResID);
  23. // Destructor
  24. virtual
  25. ~InstallationProgressPage();
  26. // These messages are sent to the page when the
  27. // installation has finished.
  28. static const UINT CYS_THREAD_SUCCESS;
  29. static const UINT CYS_THREAD_FAILED;
  30. static const UINT CYS_THREAD_USER_CANCEL;
  31. static const UINT CYS_PROGRESS_UPDATE;
  32. typedef void (*ThreadProc) (InstallationProgressPage& page);
  33. // Dialog overrides
  34. virtual
  35. void
  36. OnInit();
  37. virtual
  38. bool
  39. OnMessage(
  40. UINT message,
  41. WPARAM wparam,
  42. LPARAM lparam);
  43. virtual
  44. bool
  45. OnQueryCancel();
  46. virtual
  47. bool
  48. OnSetActive();
  49. virtual
  50. bool
  51. OnKillActive();
  52. protected:
  53. // CYSWizardPage overrides
  54. virtual
  55. int
  56. Validate();
  57. private:
  58. void
  59. SetCancelState(bool enable);
  60. // not defined: no copying allowed
  61. InstallationProgressPage(const InstallationProgressPage&);
  62. const InstallationProgressPage& operator=(const InstallationProgressPage&);
  63. };
  64. #endif // __CYS_SERVERATIONPROGRESSPAGE_H