MainFrm.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__2486F51E_8985_401E_AB91_D618397AED05__INCLUDED_)
  5. #define AFX_MAINFRM_H__2486F51E_8985_401E_AB91_D618397AED05__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "BCMenu.h"
  10. #include "TrueColorToolBar.h"
  11. #include "MyMdi.H"
  12. #include "ClientWnd.h"
  13. #include "TrayIcon.h"
  14. class CMainFrame : public CMDIFrameWnd
  15. {
  16. CTrayIcon m_TrayIcon;
  17. CClientWnd m_wndClient;
  18. HICON m_hIcon;
  19. protected: // create from serialization only
  20. DECLARE_DYNCREATE(CMainFrame)
  21. // Attributes
  22. public:
  23. CMainFrame();
  24. CMyMdi m_Mdi;
  25. // Operations
  26. public:
  27. LRESULT OnAbortClose(WPARAM wParam, LPARAM lParam);
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CMainFrame)
  31. public:
  32. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33. virtual BOOL PreTranslateMessage(MSG* pMsg);
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. HMENU NewMenu();
  38. virtual ~CMainFrame();
  39. #ifdef _DEBUG
  40. virtual void AssertValid() const;
  41. virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43. protected: // control bar embedded members
  44. CTrueColorToolBar m_wndToolBar;
  45. // Generated message map functions
  46. protected:
  47. //{{AFX_MSG(CMainFrame)
  48. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  49. afx_msg void OnDestroy();
  50. afx_msg void OnClose();
  51. afx_msg void OnTimer(UINT nIDEvent);
  52. afx_msg void OnToday();
  53. afx_msg void OnDindan();
  54. afx_msg void OnMsgreg();
  55. afx_msg void OnExit();
  56. afx_msg void OnOpen();
  57. afx_msg void OnAutorun();
  58. afx_msg void OnClientip();
  59. afx_msg void OnLog();
  60. afx_msg void OnClientip2();
  61. //}}AFX_MSG
  62. LRESULT OnTrayNotification(WPARAM wParam,LPARAM lParam);
  63. #if defined(VC70) || defined(VC60)
  64. afx_msg UINT OnNcHitTest(CPoint point);
  65. #else
  66. afx_msg LRESULT OnNcHitTest(CPoint point);
  67. #endif
  68. afx_msg void OnNcLButtonDblClk(UINT nFlags, CPoint point);
  69. DECLARE_MESSAGE_MAP()
  70. public:
  71. void OnExit2();
  72. void ChangePsw();
  73. void PrintDinDan2(CString m_id);
  74. void OnHistory(UINT nID);
  75. void AddHistoryMenu(CArray<CStringArray, CStringArray>*hisyeararray);
  76. void GetOcx();
  77. void ToPhotoPrint();
  78. void SetSelFolder(int pos);
  79. void PrintFlowChart(CString m_id);
  80. void PrintDinDan(CString m_id);
  81. void GetSkin();
  82. void AutoUpdate();
  83. void OnOutbarNotify(CString str);
  84. void ProcessChatMessageRequest2(BYTE code);
  85. void ProcessChatMessageRequest2(CString sql);
  86. void ProcessChatMessageRequest2(BYTE *pData, int length);
  87. void OnDisconnect();
  88. BOOL OnConnect();
  89. DWORD GetConnectionID();
  90. void SetConnectionID(DWORD dwConnection);
  91. BOOL ProcessChatMessageRequest(void *szDataBuf, int nDataLen);
  92. void ProcessChatMessageResponse(void *pResponse);
  93. void ProcessLoginResponse(void *pLoginResult);
  94. BOOL ProcessLoginRequest();
  95. void ProcessNetEvent(int nEventType, void *pRecvMsg, DWORD dwDataLen);
  96. private:
  97. DWORD m_dwConnectionID;
  98. };
  99. /////////////////////////////////////////////////////////////////////////////
  100. //{{AFX_INSERT_LOCATION}}
  101. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  102. #endif // !defined(AFX_MAINFRM_H__2486F51E_8985_401E_AB91_D618397AED05__INCLUDED_)