📄 dlgtcp.h
字号:
#if !defined(AFX_DLGTCP_H__D4A50C50_8F5C_4FEB_99A7_F8E8DDA90301__INCLUDED_)
#define AFX_DLGTCP_H__D4A50C50_8F5C_4FEB_99A7_F8E8DDA90301__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DLGTCP.h : header file
//
#include "winsock.h"
/////////////////////////////////////////////////////////////////////////////
// DLGTCP dialog
class DLGTCP : public CDialog
{
// Construction
public:
DLGTCP(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(DLGTCP)
enum { IDD = IDD_DLGTCP_DIALOG };
CButton m_ButDisConnect;
CButton m_ButCreConnect;
CString m_RemoteHost;
int m_RemotePort;
CString m_SendEdit;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(DLGTCP)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(DLGTCP)
afx_msg void OnCreateConnect();
afx_msg void OnDisconnect();
afx_msg void OnClearRecdisp();
afx_msg void OnSend();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
SOCKET m_Socket;
SOCKADDR_IN m_RemoteAddr;
HANDLE m_ExitThreadEvent;
CString m_strRecDisp;
private:
static DWORD TCPRecvTread(LPVOID lparam);
void CALLBACK OnTcpRecv(CWnd* pWnd, char *buf, int buflen);
void CALLBACK OnTcpError(CWnd *pWnd, int nErrorCode);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGTCP_H__D4A50C50_8F5C_4FEB_99A7_F8E8DDA90301__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -