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.

70 lines
1.8 KiB

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