?? tcpclientdlg.h
字號:
// TCPClientDlg.h : header file
//
#if !defined(AFX_TCPCLIENTDLG_H__F00D36E6_3F71_481D_A6F1_0F41D60CE8C8__INCLUDED_)
#define AFX_TCPCLIENTDLG_H__F00D36E6_3F71_481D_A6F1_0F41D60CE8C8__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "TCPClient_CE.h"
/////////////////////////////////////////////////////////////////////////////
// CTCPClientDlg dialog
class CTCPClientDlg : public CDialog
{
// Construction
public:
CTCPClientDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTCPClientDlg)
enum { IDD = IDD_TCPCLIENT_DIALOG };
CString m_remoteHost;
int m_remotePort;
CString m_recvData;
CString m_sendData;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTCPClientDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTCPClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnBtnconn();
afx_msg void OnBtndisconn();
afx_msg void OnBtnsenddata();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
//定義CTCPClient_CE對象
CTCPClient_CE m_tcpClient;
private:
//連接斷開事件處理函數
static void CALLBACK OnDisConnect(CWnd* pWnd);
//當有數據接收事件處理函數
static void CALLBACK OnRead(CWnd* pWnd,const char * buf,int len );
//Socket錯誤事件處理函數
static void CALLBACK OnError(CWnd* pWnd,int nErrorCode);
private:
//得到本地的IP地址
CString GetLocalIP();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TCPCLIENTDLG_H__F00D36E6_3F71_481D_A6F1_0F41D60CE8C8__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -