📄 newdlg.cpp
字号:
// NEWDLG.cpp : implementation file
//
#include "stdafx.h"
#include "EchoClient.h"
#include "NEWDLG.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// NEWDLG dialog
NEWDLG::NEWDLG(CWnd* pParent /*=NULL*/)
: CDialog(NEWDLG::IDD, pParent)
{
//{{AFX_DATA_INIT(NEWDLG)
m_server = _T("");
m_protocol = _T("");
m_port = 5050;
m_name = _T("");
//}}AFX_DATA_INIT
}
void NEWDLG::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(NEWDLG)
DDX_Text(pDX, IDC_EDIT_SERVER, m_server);
DDX_Text(pDX, IDC_EDIT_PROTOCOL, m_protocol);
DDX_Text(pDX, IDC_EDIT_PORT, m_port);
DDX_Text(pDX, IDC_EDIT_NAME, m_name);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(NEWDLG, CDialog)
//{{AFX_MSG_MAP(NEWDLG)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// NEWDLG message handlers
void NEWDLG::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -