📄 tcpcli.cpp
字号:
/****************************************************************************/
/* FILE */
/* */
/* TCPCLI */
/* */
/* DESCRIPTION */
/* */
/* Defines the class behaviors for the application. */
/* */
/****************************************************************************/
#include "stdafx.h"
#include "nunetdem.h"
#include "TCPCLI.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTCPCLI dialog
CTCPCLI::CTCPCLI(CWnd* pParent /*=NULL*/)
: CDialog(CTCPCLI::IDD, pParent)
{
//{{AFX_DATA_INIT(CTCPCLI)
m_num_trans = 0;
m_size_bytes = 0;
//}}AFX_DATA_INIT
}
void CTCPCLI::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTCPCLI)
DDX_Text(pDX, IDC_NUM_TRANS, m_num_trans);
DDX_Text(pDX, IDC_SIZE_BYTES, m_size_bytes);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTCPCLI, CDialog)
//{{AFX_MSG_MAP(CTCPCLI)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTCPCLI message handlers
/****************************************************************************/
/* FUNCTION */
/* */
/* OnInitDialog */
/* */
/* DESCRIPTION */
/* */
/* Initializes TCPCLI pop up window for entering Packets and Number of times*/
/* to transfer. */
/* */
/****************************************************************************/
BOOL CTCPCLI::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
/****************************************************************************/
/* FUNCTION */
/* */
/* NuNetDem */
/* */
/* DESCRIPTION */
/* */
/* Handles When OK is clicked on the Dialog Box. */
/* */
/****************************************************************************/
void CTCPCLI::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -