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.

93 lines
2.7 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*******************************************************************************
  3. *
  4. * domainvw.h
  5. *
  6. * declarations for the CDomainView class
  7. *
  8. *
  9. *******************************************************************************/
  10. #ifndef _DOMAINVIEW_H
  11. #define _DOMAINVIEW_H
  12. #include "domainpg.h"
  13. const int NUMBER_OF_DOMAIN_PAGES = 5;
  14. ////////////////////
  15. // CLASS: CDomainView
  16. //
  17. class CDomainView : public CAdminView
  18. {
  19. friend class CRightPane;
  20. private:
  21. CTabCtrl* m_pTabs;
  22. CFont* m_pTabFont;
  23. int m_CurrPage;
  24. protected:
  25. CDomainView(); // protected constructor used by dynamic creation
  26. DECLARE_DYNCREATE(CDomainView)
  27. // Attributes
  28. public:
  29. protected:
  30. static PageDef pages[NUMBER_OF_DOMAIN_PAGES];
  31. // Operations
  32. public:
  33. int GetCurrentPage() { return m_CurrPage; }
  34. protected:
  35. virtual void Reset(void *);
  36. void AddTab(int index, TCHAR* text, ULONG pageindex);
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CDomainView)
  40. public:
  41. virtual void OnInitialUpdate();
  42. protected:
  43. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. protected:
  47. virtual ~CDomainView();
  48. #ifdef _DEBUG
  49. virtual void AssertValid() const;
  50. virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52. // Generated message map functions
  53. protected:
  54. //{{AFX_MSG(CDomainView)
  55. afx_msg void OnSize(UINT nType, int cx, int cy);
  56. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  57. afx_msg void OnTabSelChange(NMHDR* pNMHDR, LRESULT* pResult);
  58. afx_msg LRESULT OnChangePage(WPARAM wParam, LPARAM lParam);
  59. afx_msg LRESULT OnAdminAddServer(WPARAM wParam, LPARAM lParam);
  60. afx_msg LRESULT OnAdminRemoveServer(WPARAM wParam, LPARAM lParam);
  61. afx_msg LRESULT OnAdminUpdateServer(WPARAM wParam, LPARAM lParam);
  62. afx_msg LRESULT OnAdminUpdateProcesses(WPARAM wParam, LPARAM lParam);
  63. afx_msg LRESULT OnAdminRemoveProcess(WPARAM wParam, LPARAM lParam);
  64. afx_msg LRESULT OnAdminRedisplayProcesses(WPARAM wParam, LPARAM lParam);
  65. afx_msg LRESULT OnAdminUpdateServerInfo(WPARAM wParam, LPARAM lParam);
  66. afx_msg LRESULT OnAdminRedisplayLicenses(WPARAM wParam, LPARAM lParam);
  67. afx_msg LRESULT OnAdminUpdateWinStations(WPARAM wParam, LPARAM lParam);
  68. afx_msg LRESULT OnTabbed( WPARAM , LPARAM );
  69. afx_msg LRESULT OnShiftTabbed( WPARAM , LPARAM );
  70. afx_msg LRESULT OnCtrlTabbed( WPARAM , LPARAM );
  71. afx_msg LRESULT OnCtrlShiftTabbed( WPARAM , LPARAM );
  72. afx_msg LRESULT OnNextPane( WPARAM , LPARAM );
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. }; // end class CDomainView
  76. #endif // _DOMAINVIEW_H