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

📄 batteryppg.cpp

📁 电池控件
💻 CPP
字号:
// BatteryPpg.cpp : Implementation of the CBatteryPropPage property page class.

#include "stdafx.h"
#include "Battery.h"
#include "BatteryPpg.h"

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


IMPLEMENT_DYNCREATE(CBatteryPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CBatteryPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CBatteryPropPage)
	// 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(CBatteryPropPage, "BATTERY.BatteryPropPage.1",
	0x95413dd6, 0x9a1d, 0x4b5e, 0x9b, 0x1, 0x12, 0x4d, 0xa9, 0x88, 0x6b, 0xee)


/////////////////////////////////////////////////////////////////////////////
// CBatteryPropPage::CBatteryPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CBatteryPropPage

BOOL CBatteryPropPage::CBatteryPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_BATTERY_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CBatteryPropPage::CBatteryPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CBatteryPropPage message handlers

⌨️ 快捷键说明

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