merge the formfield patch from ooo-build
[ooovba.git] / extensions / test / ole / MfcControl / MfcControlPpg.cpp
blob5b4ae48d57a99067f624d20dab6ce7612cdf29fe
1 // MfcControlPpg.cpp : Implementation of the CMfcControlPropPage property page class.
3 #include "stdafx.h"
4 #include "MfcControl.h"
5 #include "MfcControlPpg.h"
7 #ifdef _DEBUG
8 #define new DEBUG_NEW
9 #undef THIS_FILE
10 static char THIS_FILE[] = __FILE__;
11 #endif
14 IMPLEMENT_DYNCREATE(CMfcControlPropPage, COlePropertyPage)
17 /////////////////////////////////////////////////////////////////////////////
18 // Message map
20 BEGIN_MESSAGE_MAP(CMfcControlPropPage, COlePropertyPage)
21 //{{AFX_MSG_MAP(CMfcControlPropPage)
22 // NOTE - ClassWizard will add and remove message map entries
23 // DO NOT EDIT what you see in these blocks of generated code !
24 //}}AFX_MSG_MAP
25 END_MESSAGE_MAP()
28 /////////////////////////////////////////////////////////////////////////////
29 // Initialize class factory and guid
31 IMPLEMENT_OLECREATE_EX(CMfcControlPropPage, "MFCCONTROL.MfcControlPropPage.1",
32 0xac221fb7, 0xa0d8, 0x11d4, 0x83, 0x3b, 0, 0x50, 0x4, 0x52, 0x6a, 0xb4)
35 /////////////////////////////////////////////////////////////////////////////
36 // CMfcControlPropPage::CMfcControlPropPageFactory::UpdateRegistry -
37 // Adds or removes system registry entries for CMfcControlPropPage
39 BOOL CMfcControlPropPage::CMfcControlPropPageFactory::UpdateRegistry(BOOL bRegister)
41 if (bRegister)
42 return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
43 m_clsid, IDS_MFCCONTROL_PPG);
44 else
45 return AfxOleUnregisterClass(m_clsid, NULL);
49 /////////////////////////////////////////////////////////////////////////////
50 // CMfcControlPropPage::CMfcControlPropPage - Constructor
52 CMfcControlPropPage::CMfcControlPropPage() :
53 COlePropertyPage(IDD, IDS_MFCCONTROL_PPG_CAPTION)
55 //{{AFX_DATA_INIT(CMfcControlPropPage)
56 // NOTE: ClassWizard will add member initialization here
57 // DO NOT EDIT what you see in these blocks of generated code !
58 //}}AFX_DATA_INIT
62 /////////////////////////////////////////////////////////////////////////////
63 // CMfcControlPropPage::DoDataExchange - Moves data between page and properties
65 void CMfcControlPropPage::DoDataExchange(CDataExchange* pDX)
67 //{{AFX_DATA_MAP(CMfcControlPropPage)
68 // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
69 // DO NOT EDIT what you see in these blocks of generated code !
70 //}}AFX_DATA_MAP
71 DDP_PostProcessing(pDX);
75 /////////////////////////////////////////////////////////////////////////////
76 // CMfcControlPropPage message handlers