📄 nettestdlg.h
字号:
// NetTestDlg.h : header file
//
#if !defined(AFX_NETTESTDLG_H__5FA0FF07_93B1_11D7_8F5C_FBCE96B4AB79__INCLUDED_)
#define AFX_NETTESTDLG_H__5FA0FF07_93B1_11D7_8F5C_FBCE96B4AB79__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_SOCKETMSG WM_USER+100
#define MAX_BUFLEN 1024
#include "MySocket.h"
#include "ListBoxEx.h"
/////////////////////////////////////////////////////////////////////////////
// CNetTestDlg dialog
class CNetTestDlg : public CDialog
{
// Construction
private:
CMySocket *m_pServerSocket;
CMySocket *m_pClientSocket;
BOOL m_bIsClientMode;
BOOL m_bIsConnect;
BOOL m_bIsListen;
BOOL m_bIsTextMode;
void SetClientMode(BOOL bIsClientMode);
void SetConnectStation(BOOL bIsListen,BOOL bIsConnect);
void SetTextMode(BOOL bIsTextMode);
void ShowMsg(CString strText,BYTE *pBuf,int nLength);
public:
CNetTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CNetTestDlg)
enum { IDD = IDD_NETTEST_DIALOG };
CListBoxEx m_CommBinData;
CListBoxEx m_CommTextData;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNetTestDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNetTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClientMode();
afx_msg void OnServerMode();
afx_msg void OnSendText();
afx_msg void OnSendBin();
afx_msg void OnConnectListen();
afx_msg void OnSendData();
virtual void OnCancel();
//}}AFX_MSG
afx_msg void OnSocketMsg(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_NETTESTDLG_H__5FA0FF07_93B1_11D7_8F5C_FBCE96B4AB79__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -