📄 tcptestdlg.h
字号:
// tcptestDlg.h : header file
//
#if !defined(AFX_TCPTESTDLG_H__F3664F1A_6186_4C9B_B5CB_46F6CD7E0826__INCLUDED_)
#define AFX_TCPTESTDLG_H__F3664F1A_6186_4C9B_B5CB_46F6CD7E0826__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTcptestDlg dialog
class CTcptestDlg : public CDialog
{
// Construction
public:
CTcptestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTcptestDlg)
enum { IDD = IDD_TCPTEST_DIALOG };
CSpinButtonCtrl m_spin;
CListBox m_ListRecv;
CListBox m_ListSend;
CIPAddressCtrl m_srv_ip;
CString m_strState;
DWORD m_dwSendBytes;
DWORD m_dwRecvBytes;
DWORD m_dwErrBytes;
float m_fErrRate;
UINT m_nCycle;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTcptestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
public:
BOOL m_bSerial;
CRITICAL_SECTION sync_obj;
// Implementation
protected:
HICON m_hIcon;
HANDLE hThread; //线程句柄
// SOCKET sock;
// Generated message map functions
//{{AFX_MSG(CTcptestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSerial();
afx_msg void OnButtonConnect();
afx_msg void OnButtonDisconnect();
afx_msg void OnButtonAutosend();
afx_msg void OnClose();
//}}AFX_MSG
afx_msg LRESULT OnRefreshData(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TCPTESTDLG_H__F3664F1A_6186_4C9B_B5CB_46F6CD7E0826__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -