pospage.cpp

来自「讲mfc的书」· C++ 代码 · 共 49 行

CPP
49
字号
// PosPage.cpp : implementation file
//

#include "stdafx.h"
#include "mdlsprop.h"
#include "PosPage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPosPage property page

IMPLEMENT_DYNCREATE(CPosPage, CPropertyPage)

CPosPage::CPosPage() : CPropertyPage(CPosPage::IDD)
{
	//{{AFX_DATA_INIT(CPosPage)
	m_x = 0;
	m_y = 0;
	//}}AFX_DATA_INIT
}

CPosPage::~CPosPage()
{
}

void CPosPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPosPage)
	DDX_Text(pDX, IDC_X, m_x);
	DDX_Text(pDX, IDC_Y, m_y);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CPosPage message handlers

⌨️ 快捷键说明

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