home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 25 / CDROM25.iso / Share / prog / Taller / reloj.exe / RelojPpg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-29  |  2.2 KB  |  76 lines

  1. // RelojPpg.cpp : Implementation of the CRelojPropPage property page class.
  2.  
  3. #include "stdafx.h"
  4. #include "reloj.h"
  5. #include "RelojPpg.h"
  6.  
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13.  
  14. IMPLEMENT_DYNCREATE(CRelojPropPage, COlePropertyPage)
  15.  
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // Message map
  19.  
  20. BEGIN_MESSAGE_MAP(CRelojPropPage, COlePropertyPage)
  21.     //{{AFX_MSG_MAP(CRelojPropPage)
  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()
  26.  
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Initialize class factory and guid
  30.  
  31. IMPLEMENT_OLECREATE_EX(CRelojPropPage, "RELOJ.RelojPropPage.1",
  32.     0x1f9998ed, 0x82f, 0x11d1, 0xaf, 0x87, 0, 0x40, 0x33, 0xca, 0x77, 0xbd)
  33.  
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CRelojPropPage::CRelojPropPageFactory::UpdateRegistry -
  37. // Adds or removes system registry entries for CRelojPropPage
  38.  
  39. BOOL CRelojPropPage::CRelojPropPageFactory::UpdateRegistry(BOOL bRegister)
  40. {
  41.     if (bRegister)
  42.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  43.             m_clsid, IDS_RELOJ_PPG);
  44.     else
  45.         return AfxOleUnregisterClass(m_clsid, NULL);
  46. }
  47.  
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CRelojPropPage::CRelojPropPage - Constructor
  51.  
  52. CRelojPropPage::CRelojPropPage() :
  53.     COlePropertyPage(IDD, IDS_RELOJ_PPG_CAPTION)
  54. {
  55.     //{{AFX_DATA_INIT(CRelojPropPage)
  56.     m_intervaloActualizacion = 0;
  57.     //}}AFX_DATA_INIT
  58. }
  59.  
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CRelojPropPage::DoDataExchange - Moves data between page and properties
  63.  
  64. void CRelojPropPage::DoDataExchange(CDataExchange* pDX)
  65. {
  66.     //{{AFX_DATA_MAP(CRelojPropPage)
  67.     DDP_Text(pDX, IDC_INTERVALO, m_intervaloActualizacion, _T("IntervaloActualizacion") );
  68.     DDX_Text(pDX, IDC_INTERVALO, m_intervaloActualizacion);
  69.     //}}AFX_DATA_MAP
  70.     DDP_PostProcessing(pDX);
  71. }
  72.  
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CRelojPropPage message handlers
  76.