?? udpdemodlg.h
字號:
// UDPDemoDlg.h : header file
//
#if !defined(AFX_UDPDEMODLG_H__DB781E8F_306F_4840_9D98_1549A9184704__INCLUDED_)
#define AFX_UDPDEMODLG_H__DB781E8F_306F_4840_9D98_1549A9184704__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "CEUDP.h"
/////////////////////////////////////////////////////////////////////////////
// CUDPDemoDlg dialog
class CUDPDemoDlg : public CDialog
{
// Construction
public:
CUDPDemoDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CUDPDemoDlg)
enum { IDD = IDD_UDPDEMO_DIALOG };
CString m_strRemoteIP;
int m_nLocalPort;
int m_nRemotePort;
CString m_strRecv;
CString m_strSend;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUDPDemoDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CUDPDemoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnBtnOpen();
afx_msg void OnBtnClose();
afx_msg void OnBtnSend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CCEUDP m_CEUdp; //定義UDP通訊類變量
static void CALLBACK OnUdpCERecv(CWnd * pWnd,char* buf,int nLen,sockaddr * addr); //UDP接收數據事件
static void CALLBACK OnUdpCEError(CWnd * pWnd,int nError); //UDP通訊錯誤事件
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_UDPDEMODLG_H__DB781E8F_306F_4840_9D98_1549A9184704__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -