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

📄 rectangleppg.cpp

📁 VC++写的一个Activex控件源码
💻 CPP
字号:
// RectanglePpg.cpp : Implementation of the CRectanglePropPage property page class.

#include "stdafx.h"
#include "rectangle.h"
#include "RectanglePpg.h"

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


IMPLEMENT_DYNCREATE(CRectanglePropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CRectanglePropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CRectanglePropPage)
	// 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(CRectanglePropPage, "RECTANGLE.RectanglePropPage.1",
	0x9b1af120, 0xd185, 0x4308, 0x93, 0xc1, 0x82, 0xe5, 0xdb, 0x21, 0xad, 0xd8)


/////////////////////////////////////////////////////////////////////////////
// CRectanglePropPage::CRectanglePropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CRectanglePropPage

BOOL CRectanglePropPage::CRectanglePropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_RECTANGLE_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CRectanglePropPage::CRectanglePropPage - Constructor

CRectanglePropPage::CRectanglePropPage() :
	COlePropertyPage(IDD, IDS_RECTANGLE_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CRectanglePropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


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

void CRectanglePropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CRectanglePropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CRectanglePropPage message handlers

⌨️ 快捷键说明

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