Визуальное программирование и MFC

       

NamePpg.cpp


// NamePpg.cpp : Implementation of the CNamePropPage property page class.   #include "stdafx.h" #include "name.h" #include "NamePpg.h"   #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif   IMPLEMENT_DYNCREATE(CNamePropPage, COlePropertyPage)   ///////////////////////////////////////////////////////////////////////////// // Message map BEGIN_MESSAGE_MAP(CNamePropPage, COlePropertyPage) //{{AFX_MSG_MAP(CNamePropPage) // 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(CNamePropPage, "NAME.NamePropPage.1", 0xec72d07d, 0xfabf, 0x11d1, 0x95, 0x25, 0, 0x80, 0x48, 0x89, 0x29, 0xd2)   ///////////////////////////////////////////////////////////////////////////// // CNamePropPage::CNamePropPageFactory::UpdateRegistry - // Adds or removes system registry entries for CNamePropPage   BOOL CNamePropPage::CNamePropPageFactory::UpdateRegistry(BOOL bRegister) { if (bRegister) return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(), m_clsid, IDS_NAME_PPG); else return AfxOleUnregisterClass(m_clsid, NULL); }   ///////////////////////////////////////////////////////////////////////////// // CNamePropPage::CNamePropPage - Constructor   CNamePropPage::CNamePropPage() : COlePropertyPage(IDD, IDS_NAME_PPG_CAPTION) { //{{AFX_DATA_INIT(CNamePropPage) // NOTE: ClassWizard will add member initialization here // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_DATA_INIT }   ///////////////////////////////////////////////////////////////////////////// // CNamePropPage::DoDataExchange - Moves data between page and properties   void CNamePropPage::DoDataExchange(CDataExchange* pDX) { //{{AFX_DATA_MAP(CNamePropPage) // 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); }   ///////////////////////////////////////////////////////////////////////////// // CNamePropPage message handlers



Содержание раздела