// Extra.cpp : implementation file
//

#include "stdafx.h"
#include "aamymov.h"
#include "Extra.h"

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

/////////////////////////////////////////////////////////////////////////////
// CExtra dialog

IMPLEMENT_DYNCREATE(CExtra, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CExtra, COlePropertyPage)
	//{{AFX_MSG_MAP(CExtra)
	// 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

// {9CE5EE23-C077-11D0-942B-0080C838D5F9}
IMPLEMENT_OLECREATE_EX(CExtra, "aamymov.CExtra",
	0x9ce5ee23, 0xc077, 0x11d0, 0x94, 0x2b, 0x0, 0x80, 0xc8, 0x38, 0xd5, 0xf9)


/////////////////////////////////////////////////////////////////////////////
// CExtra::CExtraFactory::UpdateRegistry -
// Adds or removes system registry entries for CExtra

BOOL CExtra::CExtraFactory::UpdateRegistry(BOOL bRegister)
{
	// TODO: Define string resource for page type; replace '0' below with ID.

	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_EXTRA);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CExtra::CExtra - Constructor

// TODO: Define string resource for page caption; replace '0' below with ID.

CExtra::CExtra() :
	COlePropertyPage(IDD, IDS_EXTRA)
{
	//{{AFX_DATA_INIT(CExtra)
	m_editText = _T("");
	//}}AFX_DATA_INIT
}


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

void CExtra::DoDataExchange(CDataExchange* pDX)
{
	// 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(CExtra)
	DDP_Text(pDX, IDC_EDIT1, m_editText, _T("EditText") );
	DDX_Text(pDX, IDC_EDIT1, m_editText);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CExtra message handlers
