authorpage.cpp

来自「windows mobile ado simple 开发环境:evc4.0」· C++ 代码 · 共 52 行

CPP
52
字号
// AuthorPage.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "AuthorPage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAuthorPage property page

IMPLEMENT_DYNCREATE(CAuthorPage, CPropertyPage)

CAuthorPage::CAuthorPage() : CPropertyPage(CAuthorPage::IDD)
{
	//{{AFX_DATA_INIT(CAuthorPage)
	m_nAuthorID = 0;
	m_odtAuthorDate = COleDateTime::GetCurrentTime();
	m_strAuthorName = _T("");
	//}}AFX_DATA_INIT
}

CAuthorPage::~CAuthorPage()
{
}

void CAuthorPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAuthorPage)
	DDX_Text(pDX, IDC_AUTHOR_ID, m_nAuthorID);
	DDV_MinMaxInt(pDX, m_nAuthorID, 0, 10000000);
	DDX_DateTimeCtrl(pDX, IDC_AUTHOR_DATE, m_odtAuthorDate);
	DDX_Text(pDX, IDC_AUTHOR_NAME, m_strAuthorName);
	DDV_MaxChars(pDX, m_strAuthorName, 80);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CAuthorPage message handlers

⌨️ 快捷键说明

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