| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- // TFBPropPage.cpp : CTFBPropPage 属性页类的实现。
- #include "stdafx.h"
- #include "TFB.h"
- #include "TFBPropPage.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- IMPLEMENT_DYNCREATE(CTFBPropPage, COlePropertyPage)
- // 消息映射
- BEGIN_MESSAGE_MAP(CTFBPropPage, COlePropertyPage)
- END_MESSAGE_MAP()
- // 初始化类工厂和 guid
- IMPLEMENT_OLECREATE_EX(CTFBPropPage, "TFB.TFBPropPage.1",
- 0x4ef9642e, 0x831, 0x49b6, 0x98, 0x47, 0xa8, 0xa3, 0x79, 0xe2, 0x47, 0x88)
- // CTFBPropPage::CTFBPropPageFactory::UpdateRegistry -
- // 添加或移除 CTFBPropPage 的系统注册表项
- BOOL CTFBPropPage::CTFBPropPageFactory::UpdateRegistry(BOOL bRegister)
- {
- if (bRegister)
- return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
- m_clsid, IDS_TFB_PPG);
- else
- return AfxOleUnregisterClass(m_clsid, NULL);
- }
- // CTFBPropPage::CTFBPropPage - 构造函数
- CTFBPropPage::CTFBPropPage() :
- COlePropertyPage(IDD, IDS_TFB_PPG_CAPTION)
- {
- }
- // CTFBPropPage::DoDataExchange - 在页和属性间移动数据
- void CTFBPropPage::DoDataExchange(CDataExchange* pDX)
- {
- DDP_PostProcessing(pDX);
- }
- // CTFBPropPage 消息处理程序
|