www.pudn.com > HexEditOcx.rar > HexEditPpg.cpp
/*
* Softerra Hex Editor (c) Softerra, LLC 2005
*
* FILENAME: HexEditPpg.cpp
* SUBSYSTEM: Core
* DESCRIPTION: Implementation of the CHexEditPropPage property page class.
*/
#include "stdafx.h"
#include "HexEdit.h"
#include "HexEditPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CHexEditPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CHexEditPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CHexEditPropPage)
// 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(CHexEditPropPage, "HEXEDIT.HexEditPropPage.1",
0x8bb89233, 0x7fec, 0x4474, 0x86, 0x2a, 0x67, 0x27, 0x11, 0x51, 0xc1, 0x71)
/////////////////////////////////////////////////////////////////////////////
// CHexEditPropPage::CHexEditPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CHexEditPropPage
BOOL CHexEditPropPage::CHexEditPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_HEXEDIT_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CHexEditPropPage::CHexEditPropPage - Constructor
CHexEditPropPage::CHexEditPropPage() :
COlePropertyPage(IDD, IDS_HEXEDIT_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CHexEditPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CHexEditPropPage::DoDataExchange - Moves data between page and properties
void CHexEditPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CHexEditPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CHexEditPropPage message handlers