empshow.cpp
来自「员工管理系统,基本的数据库操作,数据库类的设计,基本的查询等」· C++ 代码 · 共 68 行
CPP
68 行
// EmpShow.cpp : implementation file
//
#include "stdafx.h"
#include "数据库.h"
#include "EmpShow.h"
#include "ADOConn.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEmpShow dialog
CEmpShow::CEmpShow(CWnd* pParent /*=NULL*/)
: CDialog(CEmpShow::IDD, pParent)
{
//{{AFX_DATA_INIT(CEmpShow)
m_name = _T("");
m_sex = _T("");
m_address = _T("");
m_tel = _T("");
m_bumen = _T("");
//}}AFX_DATA_INIT
}
void CEmpShow::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CEmpShow)
DDX_Text(pDX, IDC_EDIT1, m_name);
DDX_Text(pDX, IDC_EDIT2, m_sex);
DDX_Text(pDX, IDC_EDIT3, m_address);
DDX_Text(pDX, IDC_EDIT4, m_tel);
DDX_Text(pDX, IDC_EDIT5, m_bumen);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CEmpShow, CDialog)
//{{AFX_MSG_MAP(CEmpShow)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEmpShow message handlers
void CEmpShow::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
BOOL CEmpShow::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
UpdateData(false);
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 + -
显示快捷键?