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

📄 switchppg.cpp

📁 VC写的用于电力行业的一个ActiveX控件
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -