contactdialog.cpp
来自「一个用VC++编写的连接数据库的电话本 比较简单 大家参考一下」· C++ 代码 · 共 47 行
CPP
47 行
// ContactDialog.cpp : implementation file
//
#include "stdafx.h"
#include "AddressBookDB.h"
#include "ContactDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CContactDialog dialog
CContactDialog::CContactDialog(CWnd* pParent /*=NULL*/)
: CDialog(CContactDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CContactDialog)
m_name = _T("");
m_phonenumber = _T("");
m_gender = -1;
//}}AFX_DATA_INIT
}
void CContactDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CContactDialog)
DDX_Text(pDX, IDC_EDIT_NAME, m_name);
DDX_Text(pDX, IDC_EDIT_PHONENUMBER, m_phonenumber);
DDX_Radio(pDX, IDC_RADIO_MALE, m_gender);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CContactDialog, CDialog)
//{{AFX_MSG_MAP(CContactDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CContactDialog message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?