PLUGINP.CPP

// PluginP.cpp : Implementation of the CPluginPropPage property page class. 

#include "stdafx.h"
#include "plugin.h"
#include "PluginP.h"

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


IMPLEMENT_DYNCREATE(CPluginPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CPluginPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CPluginPropPage)
// 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(CPluginPropPage, "PLUGIN.PluginPropPage.1",
0x85df115, 0x10e, 0x11d0, 0xaa, 0x6b, 0, 0x80, 0x5f, 0xc, 0x92, 0x32)


/////////////////////////////////////////////////////////////////////////////
// CPluginPropPage::CPluginPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CPluginPropPage

BOOL CPluginPropPage::CPluginPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_PLUGIN_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CPluginPropPage::CPluginPropPage - Constructor

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


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

void CPluginPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CPluginPropPage)
// 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);
}


/////////////////////////////////////////////////////////////////////////////
// CPluginPropPage message handlers