smsconnect.cpp

来自「发送短信的例程.利用东软的发送短信的API函数完成的功能.」· C++ 代码 · 共 61 行

CPP
61
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?