home *** CD-ROM | disk | FTP | other *** search
/ Building OCXs / Building_OCXs_Que_1995.iso / code / ch11 / buttoppg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-30  |  2.3 KB  |  76 lines

  1. // buttoppg.cpp : Implementation of the CButtonPropPage property page class.
  2.  
  3. #include "stdafx.h"
  4. #include "button.h"
  5. #include "buttoppg.h"
  6.  
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char BASED_CODE THIS_FILE[] = __FILE__;
  10. #endif
  11.  
  12.  
  13. IMPLEMENT_DYNCREATE(CButtonPropPage, COlePropertyPage)
  14.  
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // Message map
  18.  
  19. BEGIN_MESSAGE_MAP(CButtonPropPage, COlePropertyPage)
  20.     //{{AFX_MSG_MAP(CButtonPropPage)
  21.     // NOTE - ClassWizard will add and remove message map entries
  22.     //    DO NOT EDIT what you see in these blocks of generated code !
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // Initialize class factory and guid
  29.  
  30. IMPLEMENT_OLECREATE_EX(CButtonPropPage, "BUTTON.ButtonPropPage.1",
  31.     0x56a2c5a4, 0x240a, 0x11ce, 0x96, 0xf, 0x52, 0x41, 0x53, 0x48, 0x0, 0x5)
  32.  
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CButtonPropPage::CButtonPropPageFactory::UpdateRegistry -
  36. // Adds or removes system registry entries for CButtonPropPage
  37.  
  38. BOOL CButtonPropPage::CButtonPropPageFactory::UpdateRegistry(BOOL bRegister)
  39. {
  40.     if (bRegister)
  41.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  42.             m_clsid, IDS_BUTTON_PPG);
  43.     else
  44.         return AfxOleUnregisterClass(m_clsid, NULL);
  45. }
  46.  
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CButtonPropPage::CButtonPropPage - Constructor
  50.  
  51. CButtonPropPage::CButtonPropPage() :
  52.     COlePropertyPage(IDD, IDS_BUTTON_PPG_CAPTION)
  53. {
  54.     //{{AFX_DATA_INIT(CButtonPropPage)
  55.     // NOTE: ClassWizard will add member initialization here
  56.     //    DO NOT EDIT what you see in these blocks of generated code !
  57.     //}}AFX_DATA_INIT
  58. }
  59.  
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CButtonPropPage::DoDataExchange - Moves data between page and properties
  63.  
  64. void CButtonPropPage::DoDataExchange(CDataExchange* pDX)
  65. {
  66.     //{{AFX_DATA_MAP(CButtonPropPage)
  67.     // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  68.     //    DO NOT EDIT what you see in these blocks of generated code !
  69.     //}}AFX_DATA_MAP
  70.     DDP_PostProcessing(pDX);
  71. }
  72.  
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CButtonPropPage message handlers
  76.