ClientTestDlg.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // ClientTestDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include "ClientTunnel.h"
  5. #include "IClientImpl.h"
  6. // CClientTestDlg 对话框
  7. class CClientTestDlg : public CDialog
  8. {
  9. // 构造
  10. public:
  11. CClientTestDlg(CWnd* pParent = NULL); // 标准构造函数
  12. // 对话框数据
  13. enum { IDD = IDD_CLIENTTEST_DIALOG };
  14. protected:
  15. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  16. public:
  17. CString newGUID();
  18. void ProcessNetEvent(int nEventType, void *pRecvMsg, DWORD dwDataLen);
  19. void ProcessChatMessageResponse(void *pResponse);
  20. void ProcessLoginRequest();
  21. BOOL ChatLocalSvrMessageRequest(void *szDataBuf, int nDataLen);
  22. void ProcessLoginResponse(void *pLoginResult);
  23. void DataToArray(IN BYTE *pData, IN CONST DWORD &dwLength, IN CArray<CStringArray, CStringArray>* List1array);
  24. BOOL ProcessChatMessageRequest(void *szDataBuf, int nDataLen);
  25. // 实现
  26. protected:
  27. HICON m_hIcon;
  28. IClientImpl m_tClientTunnel; // 通信对象
  29. BOOL m_bIsConnected; // 是否已连接
  30. BOOL m_bIsLogined; // 是否已登录
  31. // 生成的消息映射函数
  32. virtual BOOL OnInitDialog();
  33. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  34. afx_msg void OnPaint();
  35. afx_msg void OnDestroy();
  36. afx_msg HCURSOR OnQueryDragIcon();
  37. afx_msg void OnBnClickedOk();
  38. afx_msg void OnBnClickedCancel();
  39. afx_msg void OnBnClickedButton2();
  40. afx_msg void OnBnClickedButton3();
  41. DECLARE_MESSAGE_MAP()
  42. };