📄 udptestdlg.h
字号:
// UDPTestDlg.h : header file
//
#if !defined(AFX_UDPTESTDLG_H__CB8C2606_A834_414E_B74C_DDEDA36744F1__INCLUDED_)
#define AFX_UDPTESTDLG_H__CB8C2606_A834_414E_B74C_DDEDA36744F1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CUDPTestDlg dialog
class CUDPTestDlg : public CDialog
{
// Construction
public:
CUDPTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CUDPTestDlg)
enum { IDD = IDD_UDPTEST_DIALOG };
CButton m_StopBtn;
CButton m_StartBtn;
CEdit m_hMsg;
CString m_IPAddress;
CString m_LocalAddress;
int m_Port;
int m_LocalPort;
BOOL m_AnyPort;
BOOL m_bListenIP;
CString m_ListenIPAddress;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUDPTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
private:
SOCKET socketID ;
int LocalPort;
int errNo;
char errMsg[128];
struct in_addr m_sin_listen_addr;
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CUDPTestDlg)
afx_msg void OnPrintConsole(WPARAM wparam,LPARAM lparam);
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
afx_msg void OnStop();
virtual void OnOK();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_UDPTESTDLG_H__CB8C2606_A834_414E_B74C_DDEDA36744F1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -