📄 unit.cpp
字号:
// Unit.cpp : implementation file
//
#include "stdafx.h"
#include "MyAL.h"
#include "Unit.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUnit dialog
CUnit::CUnit(CWnd* pParent /*=NULL*/)
: CDialog(CUnit::IDD, pParent)
{
//{{AFX_DATA_INIT(CUnit)
m_strFax = _T("");
m_strDeparment = _T("");
m_strJob = _T("");
m_strOffice = _T("");
m_strTelephone = _T("");
m_strUnitname = _T("");
m_strWeb = _T("");
//}}AFX_DATA_INIT
}
void CUnit::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CUnit)
DDX_Text(pDX, IDC_FAX, m_strFax);
DDX_Text(pDX, IDC_DEPARTMENT, m_strDeparment);
DDX_Text(pDX, IDC_JOB, m_strJob);
DDX_Text(pDX, IDC_OFFICE, m_strOffice);
DDX_Text(pDX, IDC_TELEPHONE, m_strTelephone);
DDX_Text(pDX, IDC_UNITNAME, m_strUnitname);
DDX_Text(pDX, IDC_WEB, m_strWeb);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CUnit, CDialog)
//{{AFX_MSG_MAP(CUnit)
ON_BN_CLICKED(IDC_COMMUNICATE, OnCommunicate)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CUnit message handlers
void CUnit::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 CUnit::OnOK()
{
}
void CUnit::OnCancel()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -