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.

86 lines
2.2 KiB

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