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

📄 propertydlg.cpp

📁 本系统实现了人员通讯信息的管理
💻 CPP
字号:
// PropertyDlg.cpp : implementation file
//

#include "stdafx.h"
#include "SuperWords.h"
#include "PropertyDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPropertyDlg dialog


CPropertyDlg::CPropertyDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CPropertyDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPropertyDlg)
	m_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 CPropertyDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPropertyDlg)
	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_OCIQ, m_oicq);
	DDX_Text(pDX, IDC_EDIT_PHONE, m_phone);
	DDX_Text(pDX, IDC_EDIT_UNIT, m_unit);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPropertyDlg, CDialog)
	//{{AFX_MSG_MAP(CPropertyDlg)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPropertyDlg message handlers
BOOL CPropertyDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here

	CSuperWordsApp *pApp = (CSuperWordsApp *)AfxGetApp();
	m_name=pApp->m_bookData.szName;
	m_email=pApp->m_bookData.szEmail;	
	m_oicq=pApp->m_bookData.szOicq ;
	m_mobile=pApp->m_bookData.szMobile;
	m_phone=pApp->m_bookData.szPhone  ;
	m_birthday=pApp->m_bookData.szBirthday;
	m_unit=pApp->m_bookData.szWorkUnit;
	m_homepage=pApp->m_bookData.szHomepage;
	m_demo=pApp->m_bookData.szDemo    ;

	UpdateData(FALSE);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CPropertyDlg::OnOK()
{
	CDialog::OnOK();

}

⌨️ 快捷键说明

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