📄 dlgconfig.cpp
字号:
// DlgConfig.cpp : implementation file
//
#include "stdafx.h"
#include "smssample.h"
#include "DlgConfig.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgConfig dialog
CDlgConfig::CDlgConfig(CWnd* pParent /*=NULL*/)
: CDialog(CDlgConfig::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgConfig)
m_nCommport = 0;
m_strMSCA = _T("");
//}}AFX_DATA_INIT
}
void CDlgConfig::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgConfig)
DDX_Text(pDX, IDC_EDIT1, m_nCommport);
DDV_MinMaxInt(pDX, m_nCommport, 1, 5);
DDX_Text(pDX, IDC_EDIT2, m_strMSCA);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgConfig, CDialog)
//{{AFX_MSG_MAP(CDlgConfig)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgConfig message handlers
void CDlgConfig::OnOK()
{
// TODO: Add extra validation here
UpdateData(FALSE);
if(this->m_strMSCA.IsEmpty())
{
AfxMessageBox("请输入短信中心号码",MB_OK,NULL);
return;
}
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -