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

📄 winsockudpdlg.h

📁 编程实例
💻 H
字号:
// WinSockUDPDlg.h : header file
//

#if !defined(AFX_WINSOCKUDPDLG_H__A83E48B1_CB04_4AFC_BFD0_8892AED9A9EA__INCLUDED_)
#define AFX_WINSOCKUDPDLG_H__A83E48B1_CB04_4AFC_BFD0_8892AED9A9EA__INCLUDED_

#include "SocketUdp.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CWinSockUDPDlg dialog

class CWinSockUDPDlg : public CDialog
{
// Construction
public:
	//声明两个函数,用来与自己派生的Socket类相关联
	void OnReceive();
	void OnSocketClose();

	CWinSockUDPDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CWinSockUDPDlg)
	enum { IDD = IDD_WINSOCKUDP_DIALOG };
	CButton	m_btnExit;
	CEdit	m_ctlSPort;
	CEdit	m_ctlName;
	CButton	m_btnSend;
	CButton	m_btnOpen;
	CEdit	m_ctlLPort;
	CButton	m_btnDisConn;
	CEdit	m_ctlData;
	CButton	m_btnConn;
	CButton	m_btnClear;
	CListBox	m_lstChat;
	CString	m_strChat;
	CString	m_strData;
	int		m_iLPort;
	CString	m_strName;
	int		m_iSPort;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CWinSockUDPDlg)
	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 OnClose();
	afx_msg void OnClear();
	afx_msg void OnOpenPort();
	afx_msg void OnDisConn();
	afx_msg void OnMsgSend();
	afx_msg void OnExit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CSocketUdp m_uSocket;
};

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

#endif // !defined(AFX_WINSOCKUDPDLG_H__A83E48B1_CB04_4AFC_BFD0_8892AED9A9EA__INCLUDED_)

⌨️ 快捷键说明

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