📄 customer.cpp
字号:
// Customer.cpp : implementation file
//
#include "stdafx.h"
#include "Login.h"
#include "Customer.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCustomer dialog
CCustomer::CCustomer(CWnd* pParent /*=NULL*/)
: CDialog(CCustomer::IDD, pParent)
{
//{{AFX_DATA_INIT(CCustomer)
//}}AFX_DATA_INIT
}
void CCustomer::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCustomer)
DDX_Control(pDX, IDC_STATIC6, m_static6);
DDX_Control(pDX, IDC_STATIC5, m_static5);
DDX_Control(pDX, IDC_STATIC4, m_static4);
DDX_Control(pDX, IDC_STATIC3, m_static3);
DDX_Control(pDX, IDC_STATIC2, m_static2);
DDX_Control(pDX, IDC_STATIC1, m_static1);
DDX_Control(pDX, IDC_EDIT7, m_posecode);
DDX_Control(pDX, IDC_EDIT6, m_web);
DDX_Control(pDX, IDC_EDIT5, m_addr);
DDX_Control(pDX, IDC_EDIT4, m_phone);
DDX_Control(pDX, IDC_EDIT3, m_people);
DDX_Control(pDX, IDC_EDIT1, m_name);
DDX_Control(pDX, IDC_BUTTON2, m_cancel);
DDX_Control(pDX, IDC_BUTTON1, m_save);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCustomer, CDialog)
//{{AFX_MSG_MAP(CCustomer)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCustomer message handlers
BOOL CCustomer::OnInitDialog()
{
CDialog::OnInitDialog();
m_static1.SetWindowText("顾客名称");
m_static2.SetWindowText("负责人");
m_static3.SetWindowText("电话");
m_static4.SetWindowText("网址");
m_static5.SetWindowText("地址");
m_static6.SetWindowText("邮政编码");
m_save.SetWindowText("保存");
m_cancel.SetWindowText("取消");
SetWindowText("顾客信息");
return TRUE;
}
void CCustomer::OnButton1()
{
// TODO: Add your control notification handler code here
}
void CCustomer::OnButton2()
{
// TODO: Add your control notification handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -