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

📄 serverhdlg.h

📁 这是一个网络编程的小型例子
💻 H
字号:
// serverHDlg.h : header file
//
//{{AFX_INCLUDES()
#include "stdafx.h"
//}}AFX_INCLUDES

#if !defined(AFX_SERVERHDLG_H__E2493391_233D_4A97_A4A3_83A048748344__INCLUDED_)
#define AFX_SERVERHDLG_H__E2493391_233D_4A97_A4A3_83A048748344__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CServerHDlg dialog


class CServerHDlg : public CDialog
{
// Construction
public:
	CServerHDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CServerHDlg)
	enum { IDD = IDD_SERVERH_DIALOG };
	CButton	m_btnclear2;
	CListBox	m_conmsg2;
	CComboBox	m_comboNcard;
	CButton	m_btnclear;
	CListBox	m_conmsg;
	CButton	m_btnIPSet;
	CEdit	m_editmsg;
	CEdit	m_ip1;
	CEdit	m_ip2;
	CListBox	m_recvText;
	CButton	m_OK;
	CComboBox	m_clientip;
	CButton	m_cancel;
	CEdit	m_senddata;
	CButton	m_btnsend;
	CButton	m_btnstop;
	CButton	m_btnstart;
	//}}AFX_DATA
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CServerHDlg)
protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CServerHDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnButton3StartServer();
	afx_msg void OnButton4();
	afx_msg void OnMenuitemQuit();
	afx_msg void OnButton1();
	afx_msg void OnBtnSetIP();
	afx_msg void OnBtnClear();
	afx_msg void OnBtnClearMsg();
	afx_msg void OnBtnClear2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	CString strIP1;
	CString strIP2;
	//int count;
	//int getcount();
	//void sendtoall(SOCKET,char*);
};

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

#endif // !defined(AFX_SERVERHDLG_H__E2493391_233D_4A97_A4A3_83A048748344__INCLUDED_)

⌨️ 快捷键说明

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