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

📄 dlg2.h

📁 关于网络编程自己做得一个小例子
💻 H
字号:
#if !defined(AFX_DLG2_H__B43DFA4E_F8AF_4993_8C63_62516AEBC2DB__INCLUDED_)
#define AFX_DLG2_H__B43DFA4E_F8AF_4993_8C63_62516AEBC2DB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dlg2.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlg2 dialog

#include "DataFrame.h"
#include "ChatSocket.h"

#define BUFFER_SIZE 200
class CChatSocket;

class CDlg2 : public CDialog
{
protected:
	CDataFrame m_df;
	CChatSocket* m_pSocket;
	CStatusBar *pStatus;
// Construction
public:
	void SendData(CString strMsg);
	void ReadData();
	CDlg2(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlg2)
	enum { IDD = IDD_DIALOG2 };
	CListBox	m_listMsg;
	CString	m_strMsg;
	CString	m_strName;
	CString	m_strServer;
	int		m_Port;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlg2)
	afx_msg void OnDestroy();
	afx_msg void OnSend();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DLG2_H__B43DFA4E_F8AF_4993_8C63_62516AEBC2DB__INCLUDED_)

⌨️ 快捷键说明

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