home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Using Visual C++ 4 (Special Edition)
/
Using_Visual_C_4_Special_Edition_QUE_1996.iso
/
ch11
/
calenppg.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-25
|
2KB
|
79 lines
// CalenPpg.cpp : Implementation of the CCalenPropPage property page class.
#include "stdafx.h"
#include "Calen.h"
#include "CalenPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CCalenPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CCalenPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CCalenPropPage)
// 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(CCalenPropPage, "CALEN.CalenPropPage.1",
0xf0464dd4, 0xd57, 0x11cf, 0xb4, 0xcd, 0, 0x80, 0xc8, 0x1a, 0x39, 0x7c)
/////////////////////////////////////////////////////////////////////////////
// CCalenPropPage::CCalenPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CCalenPropPage
BOOL CCalenPropPage::CCalenPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_CALEN_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CCalenPropPage::CCalenPropPage - Constructor
CCalenPropPage::CCalenPropPage() :
COlePropertyPage(IDD, IDS_CALEN_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CCalenPropPage)
m_threeD = FALSE;
m_ctrlBorderStyle = -1;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CCalenPropPage::DoDataExchange - Moves data between page and properties
void CCalenPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CCalenPropPage)
DDP_Check(pDX, IDC_THREED, m_threeD, _T("ThreeD") );
DDX_Check(pDX, IDC_THREED, m_threeD);
DDP_CBIndex(pDX, IDC_CBORDERSTYLE, m_ctrlBorderStyle, _T("CtrlBorderStyle") );
DDX_CBIndex(pDX, IDC_CBORDERSTYLE, m_ctrlBorderStyle);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CCalenPropPage message handlers