【VC开源代码栏目提醒】:网学会员鉴于大家对VC开源代码十分关注,论文会员在此为大家搜集整理了“ExPpg.cpp”一文,供大家参考学习
// ExPpg.cpp : Implementation of the CExPropPage property page class.
#include "stdafx.h"
#include "ex.h"
#include "ExPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CExPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CExPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CExPropPage)
// 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(CExPropPage, "EX.ExPropPage.1",
0x49021c22, 0xd8e6, 0x4e73, 0x80, 0x78, 0xec, 0x9a, 0x55, 0x2f, 0x88, 0x1)
/////////////////////////////////////////////////////////////////////////////
// CExPropPage::CExPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CExPropPage
BOOL CExPropPage::CExPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_EX_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CExPropPage::CExPropPage - Constructor
CExPropPage::CExPropPage() :
COlePropertyPage(IDD, IDS_EX_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CExPropPage)
m_rd = 2;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CExPropPage::DoDataExchange - Moves data between page and properties
void CExPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CExPropPage)
DDP_Text(pDX, IDC_Radius, m_rd, _T("Radius") );
DDX_Text(pDX, IDC_Radius, m_rd);
DDV_MinMaxLong(pDX, m_rd, 1, 10);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CExPropPage message handlers