中间件标准版5.1git,去除基础模块

DisplayWnd.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*************************************************************************
  2. 【文件名】 DisplayWnd.h
  3. 【功能模块和目的】 用于显示线路状态信息的框架窗口类头文件
  4. 【开发者及日期】 郑石诺 2015/06/24
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. #include "TrayIcon.h"
  11. #include "ViewLog.h"
  12. class CDockPane;
  13. /*************************************************************************
  14. 【类名】 CDisplayWnd
  15. 【功能】
  16. 【接口说明】 用于显示线路状态信息的框架窗口类
  17. 【开发者及日期】 郑石诺 2015/06/24
  18. 【版本】 V1.0.0
  19. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  20. 【更改记录】
  21. *************************************************************************/
  22. class CDisplayWnd : public CFrameWndEx
  23. {
  24. DECLARE_DYNCREATE(CDisplayWnd)
  25. public:
  26. CDisplayWnd(); // 动态创建所使用的受保护的构造函数
  27. virtual ~CDisplayWnd();
  28. void Show(void);
  29. void OnNewPane(CDockPane* pPane);
  30. BOOL InsertMenuItem(UINT beforeItemId, UINT NewItemId, UINT NewItemName);
  31. protected:
  32. afx_msg LRESULT OnSystemTray(WPARAM wParam, LPARAM lParam);
  33. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  34. afx_msg void OnClose();
  35. afx_msg void OnMenuAbout();
  36. afx_msg void OnMenuViewLog();
  37. afx_msg void OnMenuQuit();
  38. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  39. afx_msg void OnMenuMonitorStart();
  40. afx_msg void OnMenuMonitorStop();
  41. afx_msg void OnUpdateMenuMonitorStart(CCmdUI *pCmdUI);
  42. afx_msg void OnUpdateMenuMonitorStop(CCmdUI *pCmdUI);
  43. afx_msg void OnMenuProcess();
  44. DECLARE_MESSAGE_MAP()
  45. private:
  46. CShellManager* m_pShellManager;
  47. HICON m_hIcon;
  48. CMFCStatusBar m_wndStatusBar;
  49. CTrayIcon m_TrayIcon;
  50. CViewLog m_ViewLog;
  51. BOOL m_IsGuardRun; // 监控服务是否运行中
  52. private:
  53. BOOL __KillProcessFromName(CString strProcessName);
  54. };