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

📄 shapeppage.cpp

📁 《MFC经典问答》pdf格式 拿出来大家共享一下
💻 CPP
字号:
// ShapePPage.cpp : implementation file
//

#include "stdafx.h"
#include "SetActivePage.h"

#include "ShapePPage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CShapePPage property page

IMPLEMENT_DYNCREATE(CShapePPage, CPropertyPage)

CShapePPage::CShapePPage() : CPropertyPage(CShapePPage::IDD)
{
	//{{AFX_DATA_INIT(CShapePPage)
	m_nShape = -1;
	//}}AFX_DATA_INIT
}

CShapePPage::~CShapePPage()
{
}

void CShapePPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CShapePPage)
	DDX_CBIndex(pDX, IDC_SHAPE, m_nShape);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CShapePPage, CPropertyPage)
	//{{AFX_MSG_MAP(CShapePPage)
	ON_BN_CLICKED(IDC_GOTO_COORDS, OnGotoCoords)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CShapePPage message handlers

void CShapePPage::OnGotoCoords() 
{
	CPropertySheet* pParent = DYNAMIC_DOWNCAST( CPropertySheet, GetParent() );
	if( pParent )
	{
		pParent->SetActivePage( 0 );	// 1st page
	}
}

⌨️ 快捷键说明

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