home *** CD-ROM | disk | FTP | other *** search
- // RelojPpg.cpp : Implementation of the CRelojPropPage property page class.
-
- #include "stdafx.h"
- #include "reloj.h"
- #include "RelojPpg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
-
- IMPLEMENT_DYNCREATE(CRelojPropPage, COlePropertyPage)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Message map
-
- BEGIN_MESSAGE_MAP(CRelojPropPage, COlePropertyPage)
- //{{AFX_MSG_MAP(CRelojPropPage)
- // NOTE - ClassWizard will add and remove message map entries
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Initialize class factory and guid
-
- IMPLEMENT_OLECREATE_EX(CRelojPropPage, "RELOJ.RelojPropPage.1",
- 0x1f9998ed, 0x82f, 0x11d1, 0xaf, 0x87, 0, 0x40, 0x33, 0xca, 0x77, 0xbd)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CRelojPropPage::CRelojPropPageFactory::UpdateRegistry -
- // Adds or removes system registry entries for CRelojPropPage
-
- BOOL CRelojPropPage::CRelojPropPageFactory::UpdateRegistry(BOOL bRegister)
- {
- if (bRegister)
- return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
- m_clsid, IDS_RELOJ_PPG);
- else
- return AfxOleUnregisterClass(m_clsid, NULL);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CRelojPropPage::CRelojPropPage - Constructor
-
- CRelojPropPage::CRelojPropPage() :
- COlePropertyPage(IDD, IDS_RELOJ_PPG_CAPTION)
- {
- //{{AFX_DATA_INIT(CRelojPropPage)
- m_intervaloActualizacion = 0;
- //}}AFX_DATA_INIT
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CRelojPropPage::DoDataExchange - Moves data between page and properties
-
- void CRelojPropPage::DoDataExchange(CDataExchange* pDX)
- {
- //{{AFX_DATA_MAP(CRelojPropPage)
- DDP_Text(pDX, IDC_INTERVALO, m_intervaloActualizacion, _T("IntervaloActualizacion") );
- DDX_Text(pDX, IDC_INTERVALO, m_intervaloActualizacion);
- //}}AFX_DATA_MAP
- DDP_PostProcessing(pDX);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CRelojPropPage message handlers
-