home *** CD-ROM | disk | FTP | other *** search
- // timerppg.cpp : Implementation of the CTimerPropPage property page class.
-
- #include "stdafx.h"
- #include "timer.h"
- #include "timerppg.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
-
- IMPLEMENT_DYNCREATE(CTimerPropPage, COlePropertyPage)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Message map
-
- BEGIN_MESSAGE_MAP(CTimerPropPage, COlePropertyPage)
- //{{AFX_MSG_MAP(CTimerPropPage)
- // 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(CTimerPropPage, "TIMER.TimerPropPage.1",
- 0x56e0b3b4, 0x1784, 0x11ce, 0x96, 0xf, 0x52, 0x41, 0x53, 0x48, 0x0, 0x5)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CTimerPropPage::CTimerPropPageFactory::UpdateRegistry -
- // Adds or removes system registry entries for CTimerPropPage
-
- BOOL CTimerPropPage::CTimerPropPageFactory::UpdateRegistry(BOOL bRegister)
- {
- if (bRegister)
- return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
- m_clsid, IDS_TIMER_PPG);
- else
- return AfxOleUnregisterClass(m_clsid, NULL);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CTimerPropPage::CTimerPropPage - Constructor
-
- CTimerPropPage::CTimerPropPage() :
- COlePropertyPage(IDD, IDS_TIMER_PPG_CAPTION)
- {
- //{{AFX_DATA_INIT(CTimerPropPage)
- m_Enabled = FALSE;
- m_Interval = 0;
- //}}AFX_DATA_INIT
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CTimerPropPage::DoDataExchange - Moves data between page and properties
-
- void CTimerPropPage::DoDataExchange(CDataExchange* pDX)
- {
- //{{AFX_DATA_MAP(CTimerPropPage)
- DDP_Check(pDX, IDC_ENABLEDCHECK, m_Enabled, _T("Enabled") );
- DDX_Check(pDX, IDC_ENABLEDCHECK, m_Enabled);
- DDP_Text(pDX, IDC_INTERVALEDIT, m_Interval, _T("Interval") );
- DDX_Text(pDX, IDC_INTERVALEDIT, m_Interval);
- DDV_MaxChars(pDX, m_Interval, 32767);
- //}}AFX_DATA_MAP
- DDP_PostProcessing(pDX);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CTimerPropPage message handlers
-