ex126ClientDlg.h
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:1k
源码类别:

书籍源码

开发平台:

Visual C++

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