📄 smsconnect.cpp
字号:
// SMSConnect.cpp : implementation file
//
#include "stdafx.h"
#include "sms.h"
#include "SMSConnect.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// SMSConnect dialog
SMSConnect::SMSConnect(CWnd* pParent /*=NULL*/)
: CDialog(SMSConnect::IDD, pParent)
{
//{{AFX_DATA_INIT(SMSConnect)
m_pwd = _T("");
m_user = _T("");
m_gwip = _T("");
m_gwport = _T("");
//}}AFX_DATA_INIT
}
void SMSConnect::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(SMSConnect)
DDX_Text(pDX, IDC_PASSWD, m_pwd);
DDV_MaxChars(pDX, m_pwd, 16);
DDX_Text(pDX, IDC_USER, m_user);
DDV_MaxChars(pDX, m_user, 16);
DDX_Text(pDX, IDC_GWIP, m_gwip);
DDV_MaxChars(pDX, m_gwip, 15);
DDX_Text(pDX, IDC_GWPORT, m_gwport);
DDV_MaxChars(pDX, m_gwport, 5);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(SMSConnect, CDialog)
//{{AFX_MSG_MAP(SMSConnect)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// SMSConnect message handlers
void SMSConnect::OnOK()
{
// TODO: Add extra validation here
UpdateData();
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -