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

📄 mfccircleppg.cpp

📁 vc++ acticex原代码
💻 CPP
字号:
// MfcCirclePpg.cpp : Implementation of the CMfcCirclePropPage property page class.

#include "stdafx.h"
#include "MfcAxCtl.h"
#include "MfcCirclePpg.h"

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


IMPLEMENT_DYNCREATE(CMfcCirclePropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CMfcCirclePropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CMfcCirclePropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CMfcCirclePropPage, "MFCAXCTL.MfcCirclePropPage.1",
	0x104add89, 0x68b8, 0x11d4, 0xa5, 0x4d, 0, 0x50, 0xba, 0xdb, 0x14, 0xa3)


/////////////////////////////////////////////////////////////////////////////
// CMfcCirclePropPage::CMfcCirclePropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CMfcCirclePropPage

BOOL CMfcCirclePropPage::CMfcCirclePropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_MFCCIRCLE_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CMfcCirclePropPage::CMfcCirclePropPage - Constructor

CMfcCirclePropPage::CMfcCirclePropPage() :
	COlePropertyPage(IDD, IDS_MFCCIRCLE_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CMfcCirclePropPage)
	m_caption = _T("");
	m_circleOffset = 0;
	m_circleShape = FALSE;
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CMfcCirclePropPage::DoDataExchange - Moves data between page and properties

void CMfcCirclePropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CMfcCirclePropPage)
	DDP_Text(pDX, IDC_CAPTION, m_caption, _T("Caption") );
	DDX_Text(pDX, IDC_CAPTION, m_caption);
	DDP_Text(pDX, IDC_CIRCLEOFFSET, m_circleOffset, _T("CircleOffset") );
	DDX_Text(pDX, IDC_CIRCLEOFFSET, m_circleOffset);
	DDP_Check(pDX, IDC_CIRCLESHAPE, m_circleShape, _T("CircleShape") );
	DDX_Check(pDX, IDC_CIRCLESHAPE, m_circleShape);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CMfcCirclePropPage message handlers

⌨️ 快捷键说明

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