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.

95 lines
2.8 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*******************************************************************************
  3. *
  4. * rtpane.h
  5. *
  6. * - declarations for the CRightPane class
  7. * - the RightPane class is a public CView derivative that maintains
  8. * one of each of the default view type objects, swapping them
  9. * in and out of it's space as necessary (actually the views are
  10. * disabled/hidden and enabled/shown, but you get the idea...)
  11. *
  12. *******************************************************************************/
  13. #ifndef _RIGHTPANE_H
  14. #define _RIGHTPANE_H
  15. #include "blankvw.h" // CBlankView
  16. #include "allsrvvw.h" // CAllServersView
  17. #include "domainvw.h" // CDomainView
  18. #include "servervw.h" // CServerView
  19. #include "winsvw.h" // CWinStationView
  20. #include "msgview.h" // CMessageView
  21. const int NUMBER_OF_VIEWS = 6;
  22. typedef struct _rpview {
  23. CAdminView *m_pView;
  24. CRuntimeClass *m_pRuntimeClass;
  25. } RightPaneView;
  26. //////////////////////
  27. // CLASS: CRightPane
  28. //
  29. class CRightPane : public CView
  30. {
  31. protected:
  32. CRightPane(); // protected constructor used by dynamic creation
  33. DECLARE_DYNCREATE(CRightPane)
  34. // Attributes
  35. protected:
  36. VIEW m_CurrViewType; // keeps track of currently 'active' view in the right pane
  37. static RightPaneView views[NUMBER_OF_VIEWS];
  38. // Operations
  39. public:
  40. VIEW GetCurrentViewType() { return m_CurrViewType; }
  41. protected:
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CRightPane)
  45. public:
  46. virtual void OnInitialUpdate();
  47. protected:
  48. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. virtual ~CRightPane();
  53. #ifdef _DEBUG
  54. virtual void AssertValid() const;
  55. virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57. // Generated message map functions
  58. protected:
  59. //{{AFX_MSG(CRightPane)
  60. afx_msg void OnSize(UINT nType, int cx, int cy);
  61. afx_msg LRESULT OnAdminChangeView(WPARAM, LPARAM);
  62. afx_msg LRESULT OnAdminAddServer(WPARAM, LPARAM);
  63. afx_msg LRESULT OnAdminRemoveServer(WPARAM, LPARAM);
  64. afx_msg LRESULT OnAdminUpdateServer(WPARAM, LPARAM);
  65. afx_msg LRESULT OnAdminUpdateProcesses(WPARAM, LPARAM);
  66. afx_msg LRESULT OnAdminRemoveProcess(WPARAM, LPARAM);
  67. afx_msg LRESULT OnAdminRedisplayProcesses(WPARAM, LPARAM);
  68. afx_msg LRESULT OnAdminUpdateServerInfo(WPARAM, LPARAM);
  69. afx_msg LRESULT OnAdminRedisplayLicenses(WPARAM, LPARAM);
  70. afx_msg LRESULT OnAdminUpdateWinStations(WPARAM, LPARAM);
  71. afx_msg LRESULT OnTabbedView(WPARAM wParam, LPARAM lParam);
  72. afx_msg LRESULT OnShiftTabbedView( WPARAM , LPARAM );
  73. afx_msg LRESULT OnCtrlTabbedView( WPARAM , LPARAM );
  74. afx_msg LRESULT OnCtrlShiftTabbedView( WPARAM , LPARAM );
  75. afx_msg LRESULT OnNextPane( WPARAM , LPARAM );
  76. afx_msg void OnSetFocus(CWnd* pOldWnd);
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. }; // end class CRightPane
  80. #endif // _RIGHTPANE_H