communicate.cpp

来自「一个非常简单地址簿程序」· C++ 代码 · 共 60 行

CPP
60
字号
// Communicate.cpp : implementation file
//

#include "stdafx.h"
#include "MyAL.h"
#include "Communicate.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCommunicate dialog


CCommunicate::CCommunicate(CWnd* pParent /*=NULL*/)
	: CDialog(CCommunicate::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCommunicate)
	m_strCity = _T("");
	m_strCountry = _T("");
	m_strEmail = _T("");
	m_strPostalcode = _T("");
	m_strProvince = _T("");
	m_strStreet = _T("");
	//}}AFX_DATA_INIT
}


void CCommunicate::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCommunicate)
	DDX_CBString(pDX, IDC_CITY, m_strCity);
	DDX_CBString(pDX, IDC_COUNTRY, m_strCountry);
	DDX_Text(pDX, IDC_EMAIL, m_strEmail);
	DDX_Text(pDX, IDC_POSTALCODE, m_strPostalcode);
	DDX_CBString(pDX, IDC_PROVINCE, m_strProvince);
	DDX_Text(pDX, IDC_STREET, m_strStreet);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCommunicate, CDialog)
	//{{AFX_MSG_MAP(CCommunicate)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCommunicate message handlers

void CCommunicate::OnOK() 
{
	UpdateData(TRUE);

	CDialog::OnOK();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?