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