// AtextPpg.cpp : Implementation of the CAtextPropPage property page class.

#include "stdafx.h"
#include "atext.h"
#include "AtextPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CAtextPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CAtextPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CAtextPropPage)
	// 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(CAtextPropPage, "ATEXT.AtextPropPage.1",
	0x722024f4, 0xfc5, 0x11d0, 0x8b, 0xc7, 0, 0x60, 0x8c, 0x87, 0x6f, 0xb3)


/////////////////////////////////////////////////////////////////////////////
// CAtextPropPage::CAtextPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CAtextPropPage

BOOL CAtextPropPage::CAtextPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_ATEXT_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CAtextPropPage::CAtextPropPage - Constructor

CAtextPropPage::CAtextPropPage() :
	COlePropertyPage(IDD, IDS_ATEXT_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CAtextPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CAtextPropPage::DoDataExchange - Moves data between page and properties

void CAtextPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CAtextPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CAtextPropPage message handlers
