1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 // MfcControlPpg.cpp : Implementation of the CMfcControlPropPage property page class.
23 
24 #include "stdafx.h"
25 #include "MfcControl.h"
26 #include "MfcControlPpg.h"
27 
28 #ifdef _DEBUG
29 #define new DEBUG_NEW
30 #undef THIS_FILE
31 static char THIS_FILE[] = __FILE__;
32 #endif
33 
34 
IMPLEMENT_DYNCREATE(CMfcControlPropPage,COlePropertyPage)35 IMPLEMENT_DYNCREATE(CMfcControlPropPage, COlePropertyPage)
36 
37 
38 /////////////////////////////////////////////////////////////////////////////
39 // Message map
40 
41 BEGIN_MESSAGE_MAP(CMfcControlPropPage, COlePropertyPage)
42 	//{{AFX_MSG_MAP(CMfcControlPropPage)
43 	// NOTE - ClassWizard will add and remove message map entries
44 	//    DO NOT EDIT what you see in these blocks of generated code !
45 	//}}AFX_MSG_MAP
46 END_MESSAGE_MAP()
47 
48 
49 /////////////////////////////////////////////////////////////////////////////
50 // Initialize class factory and guid
51 
52 IMPLEMENT_OLECREATE_EX(CMfcControlPropPage, "MFCCONTROL.MfcControlPropPage.1",
53 	0xac221fb7, 0xa0d8, 0x11d4, 0x83, 0x3b, 0, 0x50, 0x4, 0x52, 0x6a, 0xb4)
54 
55 
56 /////////////////////////////////////////////////////////////////////////////
57 // CMfcControlPropPage::CMfcControlPropPageFactory::UpdateRegistry -
58 // Adds or removes system registry entries for CMfcControlPropPage
59 
60 BOOL CMfcControlPropPage::CMfcControlPropPageFactory::UpdateRegistry(BOOL bRegister)
61 {
62 	if (bRegister)
63 		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
64 			m_clsid, IDS_MFCCONTROL_PPG);
65 	else
66 		return AfxOleUnregisterClass(m_clsid, NULL);
67 }
68 
69 
70 /////////////////////////////////////////////////////////////////////////////
71 // CMfcControlPropPage::CMfcControlPropPage - Constructor
72 
CMfcControlPropPage()73 CMfcControlPropPage::CMfcControlPropPage() :
74 	COlePropertyPage(IDD, IDS_MFCCONTROL_PPG_CAPTION)
75 {
76 	//{{AFX_DATA_INIT(CMfcControlPropPage)
77 	// NOTE: ClassWizard will add member initialization here
78 	//    DO NOT EDIT what you see in these blocks of generated code !
79 	//}}AFX_DATA_INIT
80 }
81 
82 
83 /////////////////////////////////////////////////////////////////////////////
84 // CMfcControlPropPage::DoDataExchange - Moves data between page and properties
85 
DoDataExchange(CDataExchange * pDX)86 void CMfcControlPropPage::DoDataExchange(CDataExchange* pDX)
87 {
88 	//{{AFX_DATA_MAP(CMfcControlPropPage)
89 	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
90 	//    DO NOT EDIT what you see in these blocks of generated code !
91 	//}}AFX_DATA_MAP
92 	DDP_PostProcessing(pDX);
93 }
94 
95 
96 /////////////////////////////////////////////////////////////////////////////
97 // CMfcControlPropPage message handlers
98