TalkDlg.h
上传用户:onsales
上传日期:2010-01-31
资源大小:224k
文件大小:2k
源码类别:

网络编程

开发平台:

Visual C++

  1. // TalkDlg.h : header file
  2. //
  3. #if !defined(AFX_TALKDLG_H__6E3B2202_2F71_427F_9A4D_7F3D82E3BF4D__INCLUDED_)
  4. #define AFX_TALKDLG_H__6E3B2202_2F71_427F_9A4D_7F3D82E3BF4D__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CTalkDlg dialog
  10. class CTalkDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. void GetIP_Name();
  15. SOCKADDR_IN sockStruct;
  16. SOCKET ServerSocket;
  17. CString IPstr;
  18. CTalkDlg(CWnd* pParent = NULL); // standard constructor
  19. CString IPName;
  20. CString HostName;
  21. // Dialog Data
  22. //{{AFX_DATA(CTalkDlg)
  23. enum { IDD = IDD_TALK_DIALOG };
  24. CButton m_SendMSG;
  25. CIPAddressCtrl m_ServerIPADDRESS;
  26. CString m_NAME;
  27. CString m_Talk;
  28. //}}AFX_DATA
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CTalkDlg)
  31. public:
  32. virtual BOOL DestroyWindow();
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. HICON m_hIcon;
  39. // Generated message map functions
  40. //{{AFX_MSG(CTalkDlg)
  41. virtual BOOL OnInitDialog();
  42. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  43. afx_msg void OnPaint();
  44. afx_msg HCURSOR OnQueryDragIcon();
  45. virtual void OnOK();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. private:
  49. BOOL sign;
  50. };
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  53. #endif // !defined(AFX_TALKDLG_H__6E3B2202_2F71_427F_9A4D_7F3D82E3BF4D__INCLUDED_)