1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // ClientTestDlg.h : 头文件
- //
- #pragma once
- #include "ClientTunnel.h"
- // CClientTestDlg 对话框
- class CClientTestDlg : public CDialog
- {
- // 构造
- public:
- CClientTestDlg(CWnd* pParent = NULL); // 标准构造函数
- // 对话框数据
- enum { IDD = IDD_CLIENTTEST_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- public:
- CString newGUID();
- void ProcessNetEvent(int nEventType, void *pRecvMsg, DWORD dwDataLen);
- void ProcessChatMessageResponse(void *pResponse);
- void ProcessLoginRequest();
- BOOL ChatLocalSvrMessageRequest(void *szDataBuf, int nDataLen);
- void ProcessLoginResponse(void *pLoginResult);
- void DataToArray(IN BYTE *pData, IN CONST DWORD &dwLength, IN CArray<CStringArray, CStringArray>* List1array);
- BOOL ProcessChatMessageRequest(void *szDataBuf, int nDataLen);
- // 实现
- protected:
- HICON m_hIcon;
- CClientTunnel m_tClientTunnel; // 通信对象
- BOOL m_bIsConnected; // 是否已连接
- BOOL m_bIsLogined; // 是否已登录
- // 生成的消息映射函数
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg void OnDestroy();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnBnClickedOk();
- afx_msg void OnBnClickedCancel();
- afx_msg void OnBnClickedButton2();
- afx_msg void OnBnClickedButton3();
- DECLARE_MESSAGE_MAP()
- };
|