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.

88 lines
2.0 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*
  3. * COCPage.h
  4. *
  5. * A base class for an optional component wizard page.
  6. */
  7. #ifndef __TSOC_COCPAGE_H__
  8. #define __TSOC_COCPAGE_H__
  9. #include "stdafx.h"
  10. class COCPageData
  11. {
  12. friend class COCPage;
  13. public:
  14. //
  15. // Constructor.
  16. //
  17. COCPageData ();
  18. //
  19. // Standard functions.
  20. //
  21. BOOL WasPageActivated ();
  22. protected:
  23. BOOL m_fPageActivated;
  24. };
  25. class COCPage : public PROPSHEETPAGE
  26. {
  27. public:
  28. //
  29. // Constructor and destructor.
  30. //
  31. COCPage (IN COCPageData *pPageData);
  32. ~COCPage ();
  33. //
  34. // Standard functions.
  35. //
  36. BOOL Initialize ();
  37. // most of the messages are handled by base class.
  38. // if you override this function, you might want to rerount the message to base class
  39. // for handling common messages.
  40. virtual BOOL OnNotify (IN HWND hDlgWnd, IN WPARAM wParam, IN LPARAM lParam);
  41. //
  42. // Callback functions.
  43. //
  44. static UINT CALLBACK PropSheetPageProc (IN HWND hWnd, IN UINT uMsg, IN LPPROPSHEETPAGE pPsp);
  45. static INT_PTR CALLBACK PropertyPageDlgProc (IN HWND hDlgWnd, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam);
  46. protected:
  47. COCPageData* m_pPageData;
  48. HWND m_hDlgWnd;
  49. virtual BOOL ApplyChanges();
  50. virtual BOOL CanShow () = 0;
  51. virtual COCPageData* GetPageData () const;
  52. virtual UINT GetPageID () = 0;
  53. virtual UINT GetHeaderTitleResource () = 0;
  54. virtual UINT GetHeaderSubTitleResource () = 0;
  55. virtual VOID OnActivation ();
  56. virtual BOOL OnCommand (IN HWND hDlgWnd, IN WPARAM wParam, IN LPARAM lParam);
  57. virtual VOID OnDeactivation ();
  58. virtual BOOL OnInitDialog (IN HWND hDlgWnd, IN WPARAM wParam, IN LPARAM lParam);
  59. VOID SetDlgWnd (IN HWND hDlgWnd);
  60. virtual BOOL VerifyChanges ();
  61. virtual VOID OnLink(WPARAM wParam);
  62. };
  63. #endif // __TSOC_COCPAGE_H__