⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄

📁 一个聊天的程序不错
💻
字号:
// 聊天程序Dlg.h : header file
//
#include "mysock.h"
#if !defined(AFX_DLG_H__C85C7F66_AD5B_11D2_800F_5254AB250EAA__INCLUDED_)
#define AFX_DLG_H__C85C7F66_AD5B_11D2_800F_5254AB250EAA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

class CMyDlg : public CDialog
{
// Construction
public:
	CMyDlg(CWnd* pParent = NULL);	// standard constructor
    mysock ServerListenSock;         //用于SERVER 端
	workingSock  ClientSock;         //用于CLIENT 端
	int NowPCis;         //0 表示 SERVER 端 ,1 表示 CLIENT 端 
// Dialog Data
	//{{AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
	CButton	m_send;
	CButton	m_connect;
	CButton	m_listen;
	CString	m_ip;
	CString	m_message;
	CString	m_listAll;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnListen();
	afx_msg void OnConnect();
	afx_msg void OnSend();
	afx_msg void OnSetfocusEdit1();
	afx_msg void OnSetfocusEdit3();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLG_H__C85C7F66_AD5B_11D2_800F_5254AB250EAA__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -