www.pudn.com > wi.zip > TmpOcxPpg.cpp, change:2003-06-10,size:2223b


// TmpOcxPpg.cpp : Implementation of the CTmpOcxPropPage property page class. 
 
#include "stdafx.h" 
#include "TmpOcx.h" 
#include "TmpOcxPpg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
 
IMPLEMENT_DYNCREATE(CTmpOcxPropPage, COlePropertyPage) 
 
 
///////////////////////////////////////////////////////////////////////////// 
// Message map 
 
BEGIN_MESSAGE_MAP(CTmpOcxPropPage, COlePropertyPage) 
	//{{AFX_MSG_MAP(CTmpOcxPropPage) 
	// 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(CTmpOcxPropPage, "TMPOCX.TmpOcxPropPage.1", 
	0xa8e38ca8, 0x11f, 0x408c, 0x9a, 0x36, 0x52, 0xb9, 0x49, 0x20, 0x3e, 0x51) 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CTmpOcxPropPage::CTmpOcxPropPageFactory::UpdateRegistry - 
// Adds or removes system registry entries for CTmpOcxPropPage 
 
BOOL CTmpOcxPropPage::CTmpOcxPropPageFactory::UpdateRegistry(BOOL bRegister) 
{ 
	if (bRegister) 
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(), 
			m_clsid, IDS_TMPOCX_PPG); 
	else 
		return AfxOleUnregisterClass(m_clsid, NULL); 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CTmpOcxPropPage::CTmpOcxPropPage - Constructor 
 
CTmpOcxPropPage::CTmpOcxPropPage() : 
	COlePropertyPage(IDD, IDS_TMPOCX_PPG_CAPTION) 
{ 
	//{{AFX_DATA_INIT(CTmpOcxPropPage) 
	m_Msg = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CTmpOcxPropPage::DoDataExchange - Moves data between page and properties 
 
void CTmpOcxPropPage::DoDataExchange(CDataExchange* pDX) 
{ 
	//{{AFX_DATA_MAP(CTmpOcxPropPage) 
	DDP_Text(pDX, IDC_EDTMSG, m_Msg, _T("MsgContext") ); 
	DDX_Text(pDX, IDC_EDTMSG, m_Msg); 
	//}}AFX_DATA_MAP 
	DDP_PostProcessing(pDX); 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CTmpOcxPropPage message handlers