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

📄 createcarddialog.cpp

📁 家族信息管理系统
💻 CPP
字号:
// CreateCardDialog.cpp : implementation file
//

#include "stdafx.h"
#include "familytree.h"
#include "CreateCardDialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCreateCardDialog dialog


CCreateCardDialog::CCreateCardDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CCreateCardDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCreateCardDialog)
		// NOTE: the ClassWizard will add member initialization herem_birthday = _T("");
	m_demo = _T("");
	m_email = _T("");
	m_homepage = _T("");
	m_mobile = _T("");
	m_name = _T("");
	m_oicq = _T("");
	m_phone = _T("");
	m_unit = _T("");

	//}}AFX_DATA_INIT
}


void CCreateCardDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCreateCardDialog)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	DDX_Text(pDX, IDC_EDIT_BIRTHDAY, m_birthday);
	DDX_Text(pDX, IDC_EDIT_DEMO, m_demo);
	DDX_Text(pDX, IDC_EDIT_EMAIL, m_email);
	DDX_Text(pDX, IDC_EDIT_HOMEPAGE, m_homepage);
	DDX_Text(pDX, IDC_EDIT_MOBILE, m_mobile);
	DDX_Text(pDX, IDC_EDIT_NAME, m_name);
	DDX_Text(pDX, IDC_EDIT_OICQ, m_oicq);
	DDX_Text(pDX, IDC_EDIT_PHONE, m_phone);
	DDX_Text(pDX, IDC_EDIT_UNIT, m_unit);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCreateCardDialog, CDialog)
	//{{AFX_MSG_MAP(CCreateCardDialog)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCreateCardDialog message handlers

BOOL CCreateCardDialog::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_birthday.Empty();    
	m_demo.Empty();	
	m_email.Empty();
	m_homepage.Empty();
	m_mobile.Empty();
	m_name.Empty();
	m_oicq.Empty();
	m_phone.Empty();
	m_unit.Empty();
	UpdateData(FALSE);
	//
	m_btnOk.SubclassDlgItem(IDOK, this);
	m_btnOk.SetIcon(IDI_ICON22); 
	m_btnCancle.SubclassDlgItem(IDCANCEL, this);
	m_btnCancle.SetIcon(IDI_ICON23); 
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CCreateCardDialog::OnOK()
{
	UpdateData(TRUE);
	if(m_name.IsEmpty())
	{
		MessageBox("请输入姓名!","提示",MB_OK);
		return;
	}
	CDialog::OnOK();

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -