home *** CD-ROM | disk | FTP | other *** search
/ Using Visual C++ 4 (Special Edition) / Using_Visual_C_4_Special_Edition_QUE_1996.iso / ch11 / dayppg.cpp < prev    next >
C/C++ Source or Header  |  1995-10-26  |  2KB  |  82 lines

  1. // DayPPg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Calen.h"
  6. #include "DayPPg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CDayPropPage dialog
  16.  
  17. IMPLEMENT_DYNCREATE(CDayPropPage, COlePropertyPage)
  18.  
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // Message map
  22.  
  23. BEGIN_MESSAGE_MAP(CDayPropPage, COlePropertyPage)
  24.     //{{AFX_MSG_MAP(CDayPropPage)
  25.     // NOTE - ClassWizard will add and remove message map entries
  26.     //    DO NOT EDIT what you see in these blocks of generated code !
  27.     //}}AFX_MSG_MAP
  28. END_MESSAGE_MAP()
  29.  
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32. // Initialize class factory and guid
  33.  
  34. // {7B676311-0F58-11CF-B4D0-0080C81A397C}
  35. IMPLEMENT_OLECREATE_EX(CDayPropPage, "Calen.CDayPropPage",
  36.     0x7b676311, 0xf58, 0x11cf, 0xb4, 0xd0, 0x0, 0x80, 0xc8, 0x1a, 0x39, 0x7c)
  37.  
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CDayPropPage::CDayPropPageFactory::UpdateRegistry -
  41. // Adds or removes system registry entries for CDayPropPage
  42.  
  43. BOOL CDayPropPage::CDayPropPageFactory::UpdateRegistry(BOOL bRegister)
  44. {
  45.     if (bRegister)
  46.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  47.             m_clsid, IDS_DAY_PPG);
  48.     else
  49.         return AfxOleUnregisterClass(m_clsid, NULL);
  50. }
  51.  
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CDayPropPage::CDayPropPage - Constructor
  55.  
  56. CDayPropPage::CDayPropPage() :
  57.     COlePropertyPage(IDD, IDS_DAY_PPG_CAPTION)
  58. {
  59.     //{{AFX_DATA_INIT(CDayPropPage)
  60.     m_dayBorderStyle = -1;
  61.     //}}AFX_DATA_INIT
  62. }
  63.  
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CDayPropPage::DoDataExchange - Moves data between page and properties
  67.  
  68. void CDayPropPage::DoDataExchange(CDataExchange* pDX)
  69. {
  70.     // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  71.     //    DO NOT EDIT what you see in these blocks of generated code !
  72.     //{{AFX_DATA_MAP(CDayPropPage)
  73.     DDP_CBIndex(pDX, IDC_DBORDERSTYLE, m_dayBorderStyle, _T("DayBorderStyle") );
  74.     DDX_CBIndex(pDX, IDC_DBORDERSTYLE, m_dayBorderStyle);
  75.     //}}AFX_DATA_MAP
  76.     DDP_PostProcessing(pDX);
  77. }
  78.  
  79.  
  80. /////////////////////////////////////////////////////////////////////////////
  81. // CDayPropPage message handlers
  82.