// AamymovPpg.cpp : Implementation of the CAamymovPropPage property page class.

#include "stdafx.h"
#include "aamymov.h"
#include "AamymovPpg.h"

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


IMPLEMENT_DYNCREATE(CAamymovPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CAamymovPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CAamymovPropPage)
	// 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(CAamymovPropPage, "AAMYMOV.AamymovPropPage.1",
	0xa44343e8, 0xbfb2, 0x11d0, 0x94, 0x2b, 0, 0x80, 0xc8, 0x38, 0xd5, 0xf9)


/////////////////////////////////////////////////////////////////////////////
// CAamymovPropPage::CAamymovPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CAamymovPropPage

BOOL CAamymovPropPage::CAamymovPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_AAMYMOV_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CAamymovPropPage::CAamymovPropPage - Constructor

CAamymovPropPage::CAamymovPropPage() :
	COlePropertyPage(IDD, IDS_AAMYMOV_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CAamymovPropPage)
	m_cstrTitle = _T("");
	//}}AFX_DATA_INIT
}


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

void CAamymovPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CAamymovPropPage)
	DDP_Text(pDX, IDC_TEXTEDIT, m_cstrTitle, _T("Title"));
	DDX_Text(pDX, IDC_TEXTEDIT, m_cstrTitle);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CAamymovPropPage message handlers
