Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. // HoursPpg.cpp : Implementation of the CHoursPropPage property page class.
  5. File History:
  6. JonY May-96 created
  7. --*/
  8. #include "stdafx.h"
  9. #include "Hours.h"
  10. #include "HoursPpg.h"
  11. #ifdef _DEBUG
  12. #define new DEBUG_NEW
  13. #undef THIS_FILE
  14. static char THIS_FILE[] = __FILE__;
  15. #endif
  16. IMPLEMENT_DYNCREATE(CHoursPropPage, COlePropertyPage)
  17. /////////////////////////////////////////////////////////////////////////////
  18. // Message map
  19. BEGIN_MESSAGE_MAP(CHoursPropPage, COlePropertyPage)
  20. //{{AFX_MSG_MAP(CHoursPropPage)
  21. //}}AFX_MSG_MAP
  22. END_MESSAGE_MAP()
  23. /////////////////////////////////////////////////////////////////////////////
  24. // Initialize class factory and guid
  25. IMPLEMENT_OLECREATE_EX(CHoursPropPage, "HOURS.HoursPropPage.1",
  26. 0xa44ea7ae, 0x9d58, 0x11cf, 0xa3, 0x5f, 0, 0xaa, 0, 0xb6, 0x74, 0x3b)
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CHoursPropPage::CHoursPropPageFactory::UpdateRegistry -
  29. // Adds or removes system registry entries for CHoursPropPage
  30. BOOL CHoursPropPage::CHoursPropPageFactory::UpdateRegistry(BOOL bRegister)
  31. {
  32. if (bRegister)
  33. return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  34. m_clsid, IDS_HOURS_PPG);
  35. else
  36. return AfxOleUnregisterClass(m_clsid, NULL);
  37. }
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CHoursPropPage::CHoursPropPage - Constructor
  40. CHoursPropPage::CHoursPropPage() :
  41. COlePropertyPage(IDD, IDS_HOURS_PPG_CAPTION)
  42. {
  43. //{{AFX_DATA_INIT(CHoursPropPage)
  44. //}}AFX_DATA_INIT
  45. }
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CHoursPropPage::DoDataExchange - Moves data between page and properties
  48. void CHoursPropPage::DoDataExchange(CDataExchange* pDX)
  49. {
  50. //{{AFX_DATA_MAP(CHoursPropPage)
  51. //}}AFX_DATA_MAP
  52. DDP_PostProcessing(pDX);
  53. }
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CHoursPropPage message handlers