TalkDlg.h
资源名称:多功能聊天程序.rar [点击查看]
上传用户:onsales
上传日期:2010-01-31
资源大小:224k
文件大小:2k
源码类别:
网络编程
开发平台:
Visual C++
- // TalkDlg.h : header file
- //
- #if !defined(AFX_TALKDLG_H__6E3B2202_2F71_427F_9A4D_7F3D82E3BF4D__INCLUDED_)
- #define AFX_TALKDLG_H__6E3B2202_2F71_427F_9A4D_7F3D82E3BF4D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CTalkDlg dialog
- class CTalkDlg : public CDialog
- {
- // Construction
- public:
- void GetIP_Name();
- SOCKADDR_IN sockStruct;
- SOCKET ServerSocket;
- CString IPstr;
- CTalkDlg(CWnd* pParent = NULL); // standard constructor
- CString IPName;
- CString HostName;
- // Dialog Data
- //{{AFX_DATA(CTalkDlg)
- enum { IDD = IDD_TALK_DIALOG };
- CButton m_SendMSG;
- CIPAddressCtrl m_ServerIPADDRESS;
- CString m_NAME;
- CString m_Talk;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTalkDlg)
- public:
- virtual BOOL DestroyWindow();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CTalkDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- virtual void OnOK();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- BOOL sign;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TALKDLG_H__6E3B2202_2F71_427F_9A4D_7F3D82E3BF4D__INCLUDED_)