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.

94 lines
2.4 KiB

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