regmiscdlg.cpp

来自「基于TCP的局域网多用户通信、文件传送程序详解」· C++ 代码 · 共 57 行

CPP
57
字号
// RegMisc.cpp : implementation file
//

#include "stdafx.h"
#include "wbQQClient.h"
#include "RegMiscDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRegMiscDlg property page

IMPLEMENT_DYNCREATE(CRegMiscDlg, CPropertyPage)

CRegMiscDlg::CRegMiscDlg() : CPropertyPage(CRegMiscDlg::IDD)
{
	//{{AFX_DATA_INIT(CRegMiscDlg)
	m_strCity = _T("");
	m_strEmail = _T("");
	m_strTel = _T("");
	m_strTruName = _T("");
	//}}AFX_DATA_INIT
}

CRegMiscDlg::~CRegMiscDlg()
{
}

void CRegMiscDlg::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRegMiscDlg)
	DDX_Text(pDX, IDC_EDIT_REG_CITY, m_strCity);
	DDV_MaxChars(pDX, m_strCity, 19);
	DDX_Text(pDX, IDC_EDIT_REG_EMAIL, m_strEmail);
	DDV_MaxChars(pDX, m_strEmail, 19);
	DDX_Text(pDX, IDC_EDIT_REG_TEL, m_strTel);
	DDV_MaxChars(pDX, m_strTel, 20);
	DDX_Text(pDX, IDC_EDIT_REG_TRUENAME, m_strTruName);
	DDV_MaxChars(pDX, m_strTruName, 10);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CRegMiscDlg message handlers

⌨️ 快捷键说明

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