ClientTestDlg.h 1.3 KB

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