www.pudn.com > VCBOOKSOURCES.zip > AXCTRLPPG.CPP, change:1998-03-06,size:2291b


// AXCtrlPpg.cpp : Implementation of the CAXCtrlPropPage property page class. 
 
#include "stdafx.h" 
#include "AXCtrl.h" 
#include "AXCtrlPpg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
 
IMPLEMENT_DYNCREATE(CAXCtrlPropPage, COlePropertyPage) 
 
 
///////////////////////////////////////////////////////////////////////////// 
// Message map 
 
BEGIN_MESSAGE_MAP(CAXCtrlPropPage, COlePropertyPage) 
   //{{AFX_MSG_MAP(CAXCtrlPropPage) 
   // 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(CAXCtrlPropPage, "AXCTRL.AXCtrlPropPage.1", 
   0xcc31d287, 0xb1b1, 0x11d1, 0x80, 0xfc, 0, 0xc0, 0xf6, 0xa8, 0x3b, 0x7f) 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CAXCtrlPropPage::CAXCtrlPropPageFactory::UpdateRegistry - 
// Adds or removes system registry entries for CAXCtrlPropPage 
 
BOOL CAXCtrlPropPage::CAXCtrlPropPageFactory::UpdateRegistry(BOOL bRegister) 
{ 
   if (bRegister) 
      return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(), 
         m_clsid, IDS_AXCTRL_PPG); 
   else 
      return AfxOleUnregisterClass(m_clsid, NULL); 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CAXCtrlPropPage::CAXCtrlPropPage - Constructor 
 
CAXCtrlPropPage::CAXCtrlPropPage() : 
   COlePropertyPage(IDD, IDS_AXCTRL_PPG_CAPTION) 
{ 
   //{{AFX_DATA_INIT(CAXCtrlPropPage) 
   m_ShowFrame = FALSE; 
   //}}AFX_DATA_INIT 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CAXCtrlPropPage::DoDataExchange - Moves data between page and properties 
 
void CAXCtrlPropPage::DoDataExchange(CDataExchange* pDX) 
{ 
   //{{AFX_DATA_MAP(CAXCtrlPropPage) 
   DDP_Check(pDX, IDC_SHOWFRAME, m_ShowFrame, _T("ShowFrame") ); 
   DDX_Check(pDX, IDC_SHOWFRAME, m_ShowFrame); 
   //}}AFX_DATA_MAP 
   DDP_PostProcessing(pDX); 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CAXCtrlPropPage message handlers