WxMgr.h 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __WX_MRG__
  2. #define __WX_MRG__
  3. #include <map>
  4. #include "CWxObject.h"
  5. #include "BtnST.h"
  6. #pragma once
  7. typedef struct _WXOBJINFO_
  8. {
  9. CButtonST *pWxButton;
  10. CStatic *pWxChatWnd;
  11. CWxObject *pWxObject;
  12. }WXOBJINFO;
  13. class CWxMgr
  14. {
  15. public:
  16. CWxMgr(CWnd *pMainWnd = NULL);
  17. ~CWxMgr();
  18. private:
  19. CWnd *m_pMainWnd;
  20. CRect m_rcWxList;
  21. CRect m_rcWxShow;
  22. std::map<DWORD, WXOBJINFO> m_mapWx;
  23. VOID AddMapItem(DWORD dwProcId, LPCTSTR lpItemName);
  24. VOID RemoveMapItem(DWORD dwProcId);
  25. CRect CalcRect();
  26. // ΢ÐÅ·¾¶;
  27. static TCHAR m_szWeChatPath[MAX_PATH];
  28. public:
  29. VOID SetMainWnd(CWnd *pWnd, CRect rcWxList, CRect rcWxShow) {
  30. m_pMainWnd = pWnd;
  31. m_rcWxList = rcWxList;
  32. m_rcWxShow = rcWxShow;
  33. }
  34. BOOL AttachUnMgrWxProc(CWnd *pWnd);
  35. BOOL AttachWx();
  36. VOID DetachAllWxProc();
  37. BOOL OpenWeChat();
  38. BOOL GetWeChatPath();
  39. };
  40. #endif //__WX_MRG__