⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contactdialog.cpp

📁 一个用VC++编写的连接数据库的电话本 比较简单 大家参考一下
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -