【VC开源代码栏目提醒】:网学会员鉴于大家对VC开源代码十分关注,论文会员在此为大家搜集整理了“Ex13_01ActiveXPpg.cpp”一文,供大家参考学习
// Ex13_01ActiveXPpg.cpp : Implementation of the CEx13_01ActiveXPropPage property page class.
#include "stdafx.h"
#include "Ex13_01ActiveX.h"
#include "Ex13_01ActiveXPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CEx13_01ActiveXPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CEx13_01ActiveXPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CEx13_01ActiveXPropPage)
// 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(CEx13_01ActiveXPropPage, "EX1301ACTIVEX.Ex1301ActiveXPropPage.1",
0xb6c939, 0xbb46, 0x4985, 0xb9, 0x21, 0x92, 0xb0, 0x1f, 0xd8, 0x5f, 0x10)
/////////////////////////////////////////////////////////////////////////////
// CEx13_01ActiveXPropPage::CEx13_01ActiveXPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CEx13_01ActiveXPropPage
BOOL CEx13_01ActiveXPropPage::CEx13_01ActiveXPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_EX13_01ACTIVEX_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CEx13_01ActiveXPropPage::CEx13_01ActiveXPropPage - Constructor
CEx13_01ActiveXPropPage::CEx13_01ActiveXPropPage() :
COlePropertyPage(IDD, IDS_EX13_01ACTIVEX_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CEx13_01ActiveXPropPage)
m_chk = FALSE;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CEx13_01ActiveXPropPage::DoDataExchange - Moves data between page and properties
void CEx13_01ActiveXPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CEx13_01ActiveXPropPage)
DDX_Check(pDX, IDC_CHK, m_chk);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CEx13_01ActiveXPropPage message handlers