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.

77 lines
2.0 KiB

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