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.

73 lines
1.9 KiB

  1. // RatPpg.cpp : Implementation of the CRatPropPage property page class.
  2. #include "stdafx.h"
  3. #include "cnfgprts.h"
  4. #include "RatPpg.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. IMPLEMENT_DYNCREATE(CRatPropPage, COlePropertyPage)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // Message map
  13. BEGIN_MESSAGE_MAP(CRatPropPage, COlePropertyPage)
  14. //{{AFX_MSG_MAP(CRatPropPage)
  15. //}}AFX_MSG_MAP
  16. END_MESSAGE_MAP()
  17. /////////////////////////////////////////////////////////////////////////////
  18. // Initialize class factory and guid
  19. IMPLEMENT_OLECREATE_EX(CRatPropPage, "CNFGPRTS.RatPropPage.1",
  20. 0xba634608, 0xb771, 0x11d0, 0x92, 0x96, 0, 0xc0, 0x4f, 0xb6, 0x67, 0x8b)
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CRatPropPage::CRatPropPageFactory::UpdateRegistry -
  23. // Adds or removes system registry entries for CRatPropPage
  24. BOOL CRatPropPage::CRatPropPageFactory::UpdateRegistry(BOOL bRegister)
  25. {
  26. if (bRegister)
  27. return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  28. m_clsid, IDS_RAT_PPG);
  29. else
  30. return AfxOleUnregisterClass(m_clsid, NULL);
  31. }
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CRatPropPage::CRatPropPage - Constructor
  34. CRatPropPage::CRatPropPage() :
  35. COlePropertyPage(IDD, IDS_RAT_PPG_CAPTION)
  36. {
  37. //{{AFX_DATA_INIT(CRatPropPage)
  38. m_sz_caption = _T("");
  39. //}}AFX_DATA_INIT
  40. }
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CRatPropPage::DoDataExchange - Moves data between page and properties
  43. void CRatPropPage::DoDataExchange(CDataExchange* pDX)
  44. {
  45. //{{AFX_DATA_MAP(CRatPropPage)
  46. DDP_Text(pDX, IDC_CAPTIONEDIT, m_sz_caption, _T("Caption") );
  47. DDX_Text(pDX, IDC_CAPTIONEDIT, m_sz_caption);
  48. //}}AFX_DATA_MAP
  49. DDP_PostProcessing(pDX);
  50. }
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CRatPropPage message handlers