groundingppg.cpp
来自「VC写的ActiveX控件源码」· C++ 代码 · 共 77 行
CPP
77 行
// GroundingPpg.cpp : Implementation of the CGroundingPropPage property page class.
#include "stdafx.h"
#include "grounding.h"
#include "GroundingPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CGroundingPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CGroundingPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CGroundingPropPage)
// 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(CGroundingPropPage, "GROUNDING.GroundingPropPage.1",
0x6fcb5565, 0xf3d4, 0x4fc9, 0xa6, 0x65, 0xa9, 0x48, 0x5f, 0xde, 0x15, 0xdc)
/////////////////////////////////////////////////////////////////////////////
// CGroundingPropPage::CGroundingPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CGroundingPropPage
BOOL CGroundingPropPage::CGroundingPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_GROUNDING_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CGroundingPropPage::CGroundingPropPage - Constructor
CGroundingPropPage::CGroundingPropPage() :
COlePropertyPage(IDD, IDS_GROUNDING_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CGroundingPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CGroundingPropPage::DoDataExchange - Moves data between page and properties
void CGroundingPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CGroundingPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CGroundingPropPage message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?