dlg2.h

来自「关于网络编程自己做得一个小例子」· C头文件 代码 · 共 69 行

H
69
字号
#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 + =
减小字号Ctrl + -
显示快捷键?