tvichw32ppg.cpp

来自「《Delphi5企业级解决方案及应用剖析》参考程序 DELPHI 资料集」· C++ 代码 · 共 77 行

CPP
77
字号
// TVicHW32Ppg.cpp : Implementation of the CTVicHW32PropPage property page class.

#include "stdafx.h"
#include "TVicHW32.h"
#include "TVicHW32Ppg.h"

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


IMPLEMENT_DYNCREATE(CTVicHW32PropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CTVicHW32PropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CTVicHW32PropPage)
	// 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(CTVicHW32PropPage, "TVICHW32.TVicHW32PropPage.1",
	0xeac1566, 0x1feb, 0x11d2, 0xb0, 0x35, 0, 0xa0, 0xc9, 0x18, 0x4f, 0xf9)


/////////////////////////////////////////////////////////////////////////////
// CTVicHW32PropPage::CTVicHW32PropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CTVicHW32PropPage

BOOL CTVicHW32PropPage::CTVicHW32PropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_TVICHW32_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CTVicHW32PropPage::CTVicHW32PropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CTVicHW32PropPage message handlers

⌨️ 快捷键说明

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