switchppg.cpp

来自「VC写的用于电力行业的一个ActiveX控件」· C++ 代码 · 共 77 行

CPP
77
字号
// SwitchPpg.cpp : Implementation of the CSwitchPropPage property page class.

#include "stdafx.h"
#include "switch.h"
#include "SwitchPpg.h"

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


IMPLEMENT_DYNCREATE(CSwitchPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CSwitchPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CSwitchPropPage)
	// 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(CSwitchPropPage, "SWITCH.SwitchPropPage.1",
	0x5a49d85c, 0x6f5b, 0x4655, 0x8f, 0xa7, 0x9, 0xa7, 0x56, 0x72, 0xd, 0xea)


/////////////////////////////////////////////////////////////////////////////
// CSwitchPropPage::CSwitchPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CSwitchPropPage

BOOL CSwitchPropPage::CSwitchPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_SWITCH_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CSwitchPropPage::CSwitchPropPage - Constructor

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


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

void CSwitchPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CSwitchPropPage)
	// 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);
}


/////////////////////////////////////////////////////////////////////////////
// CSwitchPropPage message handlers

⌨️ 快捷键说明

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