customerdlg.cpp
来自「一个很好的VC++ 用ODBC编的」· C++ 代码 · 共 69 行
CPP
69 行
// CustomerDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ODBCDemo2.h"
#include "CustomerDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCustomerDlg dialog
CCustomerDlg::CCustomerDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCustomerDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CCustomerDlg)
m_strCustomerID = _T("");
m_strCustomerComp = _T("");
m_strCustomerFName = _T("");
m_strCustomerSName = _T("");
m_strCustomerCountry = _T("");
m_strCustomerState = _T("");
m_strCustomerPCode = _T("");
m_strCustomerAddress = _T("");
m_strCustomerEMail = _T("");
//}}AFX_DATA_INIT
}
void CCustomerDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCustomerDlg)
DDX_Text(pDX, IDC_CUSTOMER_ID, m_strCustomerID);
DDX_Text(pDX, IDC_CUSTOMER_COMP, m_strCustomerComp);
DDX_Text(pDX, IDC_CUSTOMER_FNAME, m_strCustomerFName);
DDX_Text(pDX, IDC_CUSTOMER_SNAME, m_strCustomerSName);
DDX_Text(pDX, IDC_CUSTOMER_COUNTRY, m_strCustomerCountry);
DDX_Text(pDX, IDC_CUSTOMER_STATE, m_strCustomerState);
DDX_Text(pDX, IDC_CUSTOMER_PDCODE, m_strCustomerPCode);
DDX_Text(pDX, IDC_CUSTOMER_ADDRESS, m_strCustomerAddress);
DDX_Text(pDX, IDC_CUSTOMER_EMAIL, m_strCustomerEMail);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCustomerDlg, CDialog)
//{{AFX_MSG_MAP(CCustomerDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCustomerDlg message handlers
BOOL CCustomerDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?