home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Building OCXs
/
Building_OCXs_Que_1995.iso
/
code
/
ch04
/
quoteppg.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-18
|
3KB
|
84 lines
//------------------------------------------------------------------//
// Implementation of CQuotePropPage property page class //
// //
// System: Simple first control. //
// Developing Applications with OCX //
// Module: CQuotePropPage class implementation //
// Date: 1/11/1994 //
// Rev: 1.0 //
// //
// Author: John Toohey //
// //
//------------------------------------------------------------------//
#include "stdafx.h"
#include "quote.h"
#include "quoteppg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CQuotePropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CQuotePropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CQuotePropPage)
// 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(CQuotePropPage, "QUOTE.QuotePropPage.1",
0x7c647084, 0xf1cb, 0x101b, 0x81, 0xec, 0xb2, 0x31, 0x69, 0x42, 0x46, 0x30)
/////////////////////////////////////////////////////////////////////////////
// CQuotePropPage::CQuotePropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CQuotePropPage
BOOL CQuotePropPage::CQuotePropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_QUOTE_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CQuotePropPage::CQuotePropPage - Constructor
CQuotePropPage::CQuotePropPage() :
COlePropertyPage(IDD, IDS_QUOTE_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CQuotePropPage)
m_bShowAuthor = FALSE;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CQuotePropPage::DoDataExchange - Moves data between page and properties
void CQuotePropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CQuotePropPage)
DDP_Check(pDX, IDC_SHOWAUTHOR, m_bShowAuthor, _T("ShowAuthor") );
DDX_Check(pDX, IDC_SHOWAUTHOR, m_bShowAuthor);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CQuotePropPage message handlers