ChatClientDlg.h
上传用户:qzzxgm
上传日期:2009-12-14
资源大小:1882k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // ChatClientDlg.h : header file
  2. //
  3. #if !defined(AFX_CHATCLIENTDLG_H__7DFB6A29_8715_11D6_8F32_00E04CE76240__INCLUDED_)
  4. #define AFX_CHATCLIENTDLG_H__7DFB6A29_8715_11D6_8F32_00E04CE76240__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CChatClientDlg dialog
  10. #define BUFFER_SIZE 200 //缓冲区大小
  11. class CChatSocket;
  12. class CChatClientDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CChatClientDlg(CWnd* pParent = NULL); // standard constructor
  17. // Dialog Data
  18. //{{AFX_DATA(CChatClientDlg)
  19. enum { IDD = IDD_CHATCLIENT_DIALOG };
  20. CListBox m_ctrlMsgs;
  21. CString m_strMsg;
  22. //}}AFX_DATA
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CChatClientDlg)
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. //}}AFX_VIRTUAL
  28. public:
  29. void ProcessPendingRead();
  30. // Implementation
  31. protected:
  32. HICON m_hIcon;
  33. CChatSocket* m_pSocket;
  34. CString m_strClientName;
  35. void SendMsg(CString strMsg);
  36. // Generated message map functions
  37. //{{AFX_MSG(CChatClientDlg)
  38. virtual BOOL OnInitDialog();
  39. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  40. afx_msg void OnPaint();
  41. afx_msg HCURSOR OnQueryDragIcon();
  42. afx_msg void OnSend();
  43. //}}AFX_MSG
  44. DECLARE_MESSAGE_MAP()
  45. };
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  48. #endif // !defined(AFX_CHATCLIENTDLG_H__7DFB6A29_8715_11D6_8F32_00E04CE76240__INCLUDED_)