dllusertestdlg.h

来自「用事件方式」· C头文件 代码 · 共 67 行

H
67
字号
// DllUserTestDlg.h : header file
//

#if !defined(AFX_DLLUSERTESTDLG_H__8351B675_3B70_4615_A72E_5BB07F50ECBD__INCLUDED_)
#define AFX_DLLUSERTESTDLG_H__8351B675_3B70_4615_A72E_5BB07F50ECBD__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CDllUserTestDlg dialog
const UINT	PORT=5600;
const char	IP[]="172.18.18.207";
const int	BUFFER_SIZE=4096;
const UINT	WM_NEW_MESSAGE=WM_USER+1;
#include "NetModuleInterface.h"
class CDllUserTestDlg : public CDialog
{
// Construction
public:
	void ReadData();
	CDllUserTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CDllUserTestDlg)
	enum { IDD = IDD_DLLUSERTEST_DIALOG };
	CString	m_your_ip;
	UINT	m_your_port;
	UINT	m_my_port;
	CString	m_my_ip;
	int		m_send_times;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDllUserTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStartButton();
	afx_msg void OnSendButton();
	afx_msg void OnClose();
	//}}AFX_MSG
	afx_msg LRESULT OnSocketMessage(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
private:
	CNetModuleInterface	Interface;
private:
	void AddMessageToMessageBar(CString strMessage);
};

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

#endif // !defined(AFX_DLLUSERTESTDLG_H__8351B675_3B70_4615_A72E_5BB07F50ECBD__INCLUDED_)

⌨️ 快捷键说明

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