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.

170 lines
5.9 KiB

  1. /*******************************************************************************
  2. *
  3. * mainfrm.h
  4. *
  5. * interface of the CMainFrame class
  6. *
  7. * copyright notice: Copyright 1997, Citrix Systems Inc.
  8. * Copyright (c) 1998 - 1999 Microsoft Corporation
  9. *
  10. * $Author: donm $ Don Messerli
  11. *
  12. *******************************************************************************/
  13. class CMainFrame : public CFrameWnd
  14. {
  15. protected: // create from serialization only
  16. CMainFrame();
  17. DECLARE_DYNCREATE(CMainFrame)
  18. // Attributes
  19. protected:
  20. CSplitterWnd m_wndSplitter;
  21. CWnd *m_pLeftPane;
  22. CWnd *m_pRightPane;
  23. public:
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CMainFrame)
  29. public:
  30. virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  31. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32. virtual void ActivateFrame(int nCmdShow = -1);
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. public:
  36. virtual ~CMainFrame();
  37. #ifdef _DEBUG
  38. virtual void AssertValid() const;
  39. virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41. static void InitWarningThread( PVOID *pvParam );
  42. private:
  43. void DisconnectHelper(BOOL bTree);
  44. void SendMessageHelper(BOOL bTree);
  45. void ResetHelper(BOOL bTree);
  46. bool LocateServer(LPCTSTR sServerName);
  47. protected: // control bar embedded members
  48. CStatusBar m_wndStatusBar;
  49. CToolBar m_wndToolBar;
  50. // Generated message map functions
  51. protected:
  52. //{{AFX_MSG(CMainFrame)
  53. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  54. afx_msg LRESULT OnAdminChangeView(WPARAM, LPARAM);
  55. afx_msg LRESULT OnAdminAddServer(WPARAM, LPARAM);
  56. afx_msg LRESULT OnAdminRemoveServer(WPARAM, LPARAM);
  57. afx_msg LRESULT OnAdminUpdateServer(WPARAM, LPARAM);
  58. afx_msg LRESULT OnAdminUpdateProcesses(WPARAM, LPARAM);
  59. afx_msg LRESULT OnAdminRemoveProcess(WPARAM, LPARAM);
  60. afx_msg LRESULT OnAdminAddWinStation(WPARAM, LPARAM);
  61. afx_msg LRESULT OnAdminUpdateWinStation(WPARAM, LPARAM);
  62. afx_msg LRESULT OnAdminRemoveWinStation(WPARAM, LPARAM);
  63. afx_msg LRESULT OnAdminUpdateServerInfo(WPARAM, LPARAM);
  64. afx_msg LRESULT OnAdminRedisplayLicenses(WPARAM, LPARAM);
  65. afx_msg LRESULT OnAdminUpdateWinStations(WPARAM, LPARAM);
  66. afx_msg LRESULT OnAdminUpdateDomain(WPARAM, LPARAM);
  67. afx_msg LRESULT OnAdminAddDomain(WPARAM, LPARAM);
  68. afx_msg LRESULT OnExtAddApplication(WPARAM, LPARAM);
  69. afx_msg LRESULT OnExtAddAppServer(WPARAM, LPARAM);
  70. afx_msg LRESULT OnExtRemoveAppServer(WPARAM, LPARAM);
  71. afx_msg LRESULT OnExtAppChanged(WPARAM, LPARAM);
  72. afx_msg LRESULT OnAdminViewsReady(WPARAM, LPARAM);
  73. afx_msg LRESULT OnAdminAddServerToFavorites( WPARAM , LPARAM );
  74. afx_msg LRESULT OnForceTreeViewFocus( WPARAM , LPARAM );
  75. afx_msg LRESULT OnAdminRemoveServerFromFavs( WPARAM , LPARAM );
  76. afx_msg LRESULT OnAdminGetTVStates( WPARAM wp , LPARAM lp );
  77. afx_msg LRESULT OnAdminUpdateTVStates( WPARAM , LPARAM );
  78. //afx_msg LRESULT OnHelp(WPARAM, LPARAM);
  79. afx_msg void OnExpandAll();
  80. afx_msg void OnRefresh();
  81. afx_msg void OnConnect();
  82. afx_msg void OnTreeConnect();
  83. afx_msg void OnDisconnect();
  84. afx_msg void OnTreeDisconnect();
  85. afx_msg void OnSendMessage();
  86. afx_msg void OnTreeSendMessage();
  87. afx_msg void OnShadow();
  88. afx_msg void OnTreeShadow();
  89. afx_msg void OnReset();
  90. afx_msg void OnTreeReset();
  91. afx_msg void OnStatus();
  92. afx_msg void OnTreeStatus();
  93. afx_msg void OnLogoff();
  94. afx_msg void OnTerminate();
  95. afx_msg void OnPreferences();
  96. afx_msg void OnCollapseAll();
  97. afx_msg void OnCollapseToServers();
  98. afx_msg void OnCollapseToDomains();
  99. afx_msg void OnServerConnect();
  100. afx_msg void OnServerDisconnect();
  101. afx_msg void OnTreeDomainConnectAllServers();
  102. afx_msg void OnTreeDomainDisconnectAllServers();
  103. afx_msg void OnTreeDomainFindServers();
  104. afx_msg void OnDomainConnectAllServers();
  105. afx_msg void OnDomainDisconnectAllServers();
  106. afx_msg void OnAllServersConnect();
  107. afx_msg void OnAllServersDisconnect();
  108. afx_msg void OnAllServersFind();
  109. afx_msg void OnUpdateConnect(CCmdUI* pCmdUI);
  110. afx_msg void OnUpdateDisconnect(CCmdUI* pCmdUI);
  111. afx_msg void OnUpdateLogoff(CCmdUI* pCmdUI);
  112. afx_msg void OnUpdateMessage(CCmdUI* pCmdUI);
  113. afx_msg void OnUpdateReset(CCmdUI* pCmdUI);
  114. afx_msg void OnUpdateShadow(CCmdUI* pCmdUI);
  115. afx_msg void OnUpdateStatus(CCmdUI* pCmdUI);
  116. afx_msg void OnUpdateTerminate(CCmdUI* pCmdUI);
  117. afx_msg void OnUpdateTreeConnect(CCmdUI* pCmdUI);
  118. afx_msg void OnUpdateTreeDisconnect(CCmdUI* pCmdUI);
  119. afx_msg void OnUpdateTreeMessage(CCmdUI* pCmdUI);
  120. afx_msg void OnUpdateTreeReset(CCmdUI* pCmdUI);
  121. afx_msg void OnUpdateTreeShadow(CCmdUI* pCmdUI);
  122. afx_msg void OnUpdateTreeStatus(CCmdUI* pCmdUI);
  123. afx_msg void OnShowSystemProcesses();
  124. afx_msg void OnUpdateShowSystemProcesses(CCmdUI* pCmdUI);
  125. afx_msg void OnUpdateServerAddToFavorite( CCmdUI * );
  126. afx_msg void OnUpdateServerRemoveFromFavorite( CCmdUI * );
  127. afx_msg void OnClose();
  128. afx_msg void OnHtmlHelp();
  129. afx_msg void OnUpdateRefresh(CCmdUI* pCmdUI);
  130. afx_msg void OnUpdateServerConnect(CCmdUI* pCmdUI);
  131. afx_msg void OnUpdateServerDisconnect(CCmdUI* pCmdUI);
  132. afx_msg void OnUpdateDomainPopupMenu(CCmdUI* pCmdUI);
  133. afx_msg void OnUpdateDomainPopupFind(CCmdUI* pCmdUI);
  134. afx_msg void OnUpdateDomainMenu(CCmdUI* pCmdUI);
  135. afx_msg void OnUpdateEmptyFavs( CCmdUI* pCmdUI );
  136. afx_msg void OnAddToFavorites();
  137. afx_msg void OnTab( );
  138. afx_msg void OnShiftTab();
  139. afx_msg void OnCtrlTab( );
  140. afx_msg void OnCtrlShiftTab( );
  141. afx_msg void OnNextPane( );
  142. afx_msg void OnRemoveFromFavs( );
  143. afx_msg void OnFindServer( );
  144. afx_msg void OnDelFavNode( );
  145. afx_msg void OnEmptyFavorites( );
  146. #ifdef _STRESS_BUILD
  147. afx_msg void OnAddAllServersToFavorites( );
  148. afx_msg void OnRunStress( );
  149. afx_msg void OnRunStressLite( );
  150. #endif
  151. //}}AFX_MSG
  152. DECLARE_MESSAGE_MAP()
  153. };
  154. /////////////////////////////////////////////////////////////////////////////