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.

103 lines
2.1 KiB

  1. #ifndef MAINFORM_H
  2. #define MAINFORM_H
  3. #include "stdafx.h"
  4. #include "Document.h"
  5. class MainForm : public CFrameWnd
  6. {
  7. DECLARE_DYNCREATE( MainForm )
  8. public:
  9. MainForm();
  10. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  11. virtual LRESULT WindowProc( UINT message, WPARAM wParam, LPARAM lParam );
  12. Document *GetDocument(void)
  13. {
  14. if (m_pLeftView != NULL)
  15. {
  16. return m_pLeftView->GetDocument();
  17. }
  18. else
  19. {
  20. return NULL;
  21. }
  22. }
  23. private:
  24. CToolBar toolBar;
  25. CStatusBar statusBar;
  26. CSplitterWnd splitterWindow;
  27. CSplitterWnd splitterWindow2;
  28. //
  29. // This is just so that we can direct menu selections (which can come from
  30. // any of the views) to the left view, which actually has the code
  31. // to handle them.
  32. //
  33. LeftView *m_pLeftView;
  34. protected:
  35. afx_msg void OnClose( );
  36. // message handlers
  37. afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
  38. // world level.
  39. afx_msg void OnFileLoadHostlist();
  40. afx_msg void OnFileSaveHostlist();
  41. afx_msg void OnWorldConnect();
  42. afx_msg void OnWorldNewCluster();
  43. // cluster level.
  44. afx_msg void OnRefresh();
  45. afx_msg void OnClusterProperties();
  46. afx_msg void OnClusterRemove();
  47. afx_msg void OnClusterUnmanage();
  48. afx_msg void OnClusterAddHost();
  49. afx_msg void OnOptionsCredentials();
  50. afx_msg void OnOptionsLogSettings();
  51. afx_msg void OnClusterControl(UINT nID );
  52. afx_msg void OnClusterPortControl(UINT nID );
  53. // host level
  54. afx_msg void OnHostProperties();
  55. afx_msg void OnHostStatus();
  56. afx_msg void OnHostRemove();
  57. afx_msg void OnHostControl(UINT nID );
  58. afx_msg void OnHostPortControl(UINT nID );
  59. afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
  60. // overrides
  61. virtual
  62. BOOL
  63. OnCreateClient( LPCREATESTRUCT lpcs, CCreateContext* pContext );
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. #endif