📄 contact.cpp
字号:
// Contact.cpp : implementation file
//
#include "stdafx.h"
#include "MyAL.h"
#include "Contact.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CContact dialog
CContact::CContact(CWnd* pParent /*=NULL*/)
: CDialog(CContact::IDD, pParent)
{
//{{AFX_DATA_INIT(CContact)
m_strFax = _T("");
m_strHeadset = _T("");
m_strIcq = _T("");
m_strMsn = _T("");
m_strQq = _T("");
m_strTelephone = _T("");
//}}AFX_DATA_INIT
}
void CContact::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CContact)
DDX_Text(pDX, IDC_FAX, m_strFax);
DDX_Text(pDX, IDC_HEADSET, m_strHeadset);
DDX_Text(pDX, IDC_ICQ, m_strIcq);
DDX_Text(pDX, IDC_MSN, m_strMsn);
DDX_Text(pDX, IDC_QQ, m_strQq);
DDX_Text(pDX, IDC_TELEPHONE, m_strTelephone);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CContact, CDialog)
//{{AFX_MSG_MAP(CContact)
ON_BN_CLICKED(IDC_COMMUNICATE, OnCommunicate)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CContact message handlers
void CContact::OnCommunicate()
{
CCommunicate dlg;
dlg.m_strCity = m_strCity;
dlg.m_strCountry = m_strCountry;
dlg.m_strEmail = m_strEmail;
dlg.m_strPostalcode = m_strPostalcode;
dlg.m_strProvince = m_strProvince;
dlg.m_strStreet = m_strStreet;
if(dlg.DoModal()==IDOK)
{
m_strCity = dlg.m_strCity;
m_strCountry = dlg.m_strCountry;
m_strEmail = dlg.m_strEmail;
m_strPostalcode = dlg.m_strPostalcode;
m_strProvince = dlg.m_strProvince;
m_strStreet = dlg.m_strStreet;
}
}
void CContact::OnOK()
{
}
void CContact::OnCancel()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -