home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / CIRC2.PAK / CIRC2PPG.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.7 KB  |  86 lines

  1. // circ2ppg.cpp : Implementation of the CCirc2PropPage property page class.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "circ2.h"
  15. #include "circ2ppg.h"
  16.  
  17. #ifdef _DEBUG
  18. #undef THIS_FILE
  19. static char BASED_CODE THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22.  
  23. IMPLEMENT_DYNCREATE(CCirc2PropPage, COlePropertyPage)
  24.  
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // Message map
  28.  
  29. BEGIN_MESSAGE_MAP(CCirc2PropPage, COlePropertyPage)
  30.     //{{AFX_MSG_MAP(CCirc2PropPage)
  31.     // NOTE - ClassWizard will add and remove message map entries
  32.     //    DO NOT EDIT what you see in these blocks of generated code !
  33.     //}}AFX_MSG_MAP
  34. END_MESSAGE_MAP()
  35.  
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // Initialize class factory and guid
  39.  
  40. IMPLEMENT_OLECREATE_EX(CCirc2PropPage, "CIRC2.Circ2PropPage.1",
  41.     0x9dbafcce, 0x592f, 0x101b, 0x85, 0xce, 0x0, 0x60, 0x8c, 0xec, 0x29, 0x7b)
  42.  
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CCirc2PropPage::CCirc2PropPageFactory::UpdateRegistry -
  46. // Adds or removes system registry entries for CCirc2PropPage
  47.  
  48. BOOL CCirc2PropPage::CCirc2PropPageFactory::UpdateRegistry(BOOL bRegister)
  49. {
  50.     if (bRegister)
  51.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  52.             m_clsid, IDS_CIRC2_PPG);
  53.     else
  54.         return AfxOleUnregisterClass(m_clsid, NULL);
  55. }
  56.  
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CCirc2PropPage::CCirc2PropPage - Constructor
  60.  
  61. CCirc2PropPage::CCirc2PropPage() :
  62.     COlePropertyPage(IDD, IDS_CIRC2_PPG_CAPTION)
  63. {
  64.     //{{AFX_DATA_INIT(CCirc2PropPage)
  65.     // NOTE: ClassWizard will add member initialization here
  66.     //    DO NOT EDIT what you see in these blocks of generated code !
  67.     //}}AFX_DATA_INIT
  68. }
  69.  
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72. // CCirc2PropPage::DoDataExchange - Moves data between page and properties
  73.  
  74. void CCirc2PropPage::DoDataExchange(CDataExchange* pDX)
  75. {
  76.     //{{AFX_DATA_MAP(CCirc2PropPage)
  77.     // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  78.     //    DO NOT EDIT what you see in these blocks of generated code !
  79.     //}}AFX_DATA_MAP
  80.     DDP_PostProcessing(pDX);
  81. }
  82.  
  83.  
  84. /////////////////////////////////////////////////////////////////////////////
  85. // CCirc2PropPage message handlers
  86.