// $property_page_impl$ : $property_page_class$ 属性页类的实现。 #include "pch.h" #include "framework.h" #include "$projectname$.h" #include "$property_page_header$" #ifdef _DEBUG #define new DEBUG_NEW #endif IMPLEMENT_DYNCREATE($property_page_class$, COlePropertyPage) // 消息映射 BEGIN_MESSAGE_MAP($property_page_class$, COlePropertyPage) END_MESSAGE_MAP() // 初始化类工厂和 guid [!if PROPERTY_PAGE_TYPE_ID_SET] IMPLEMENT_OLECREATE_EX($property_page_class$, "$property_page_type_id$", $guid_property_page_clsid_olecreate$) [!else] IMPLEMENT_OLECREATE_NOREGNAME($property_page_class$, $guid_property_page_clsid_olecreate$) [!endif] // $property_page_class$::$property_page_class$Factory::UpdateRegistry - // 添加或移除 $property_page_class$ 的系统注册表项 BOOL $property_page_class$::$property_page_class$Factory::UpdateRegistry(BOOL bRegister) { if (bRegister) return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(), m_clsid, IDS_$safercprojectname$_PPG); else return AfxOleUnregisterClass(m_clsid, nullptr); } // $property_page_class$::$property_page_class$ - 构造函数 $property_page_class$::$property_page_class$() : COlePropertyPage(IDD, IDS_$safercprojectname$_PPG_CAPTION) { } // $property_page_class$::DoDataExchange - 在页和属性间移动数据 void $property_page_class$::DoDataExchange(CDataExchange* pDX) { DDP_PostProcessing(pDX); } // $property_page_class$ 消息处理程序