📄 myudpdemodlg.h
字号:
// MyUDPDemoDlg.h : header file
//
#if !defined(AFX_MYUDPDEMODLG_H__B8F5A576_5322_44E0_8618_AEE924958169__INCLUDED_)
#define AFX_MYUDPDEMODLG_H__B8F5A576_5322_44E0_8618_AEE924958169__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "udp_ce.h"
/////////////////////////////////////////////////////////////////////////////
// CMyUDPDemoDlg dialog
class CMyUDPDemoDlg : public CDialog
{
// Construction
public:
CMyUDPDemoDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyUDPDemoDlg)
enum { IDD = IDD_MYUDPDEMO_DIALOG };
CString m_RemoteHost;
int m_RemotePort;
int m_LocalPort;
CString m_SendStr;
int m_SendNum;
CString m_RecvStr;
int m_RecvNum;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyUDPDemoDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyUDPDemoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnHelpInfo();
afx_msg void OnBtnopen();
afx_msg void OnBtnclose();
afx_msg void OnBtnsend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
//定义UDP通讯类变量
CUDP_CE m_CEUdp;
//UDP接收数据事件
static void CALLBACK OnUdpCERecv(CWnd * pWnd,char* buf,int nLen,sockaddr * addr);
//UDP通讯错误事件
static void CALLBACK OnUdpCEError(CWnd * pWnd,int nError);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYUDPDEMODLG_H__B8F5A576_5322_44E0_8618_AEE924958169__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -