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.

85 lines
2.4 KiB

  1. // CertPpg.cpp : Implementation of the CCertmapPropPage property page class.
  2. #include "stdafx.h"
  3. #include "certmap.h"
  4. #include "CertPpg.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. IMPLEMENT_DYNCREATE(CCertmapPropPage, COlePropertyPage)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // Message map
  13. BEGIN_MESSAGE_MAP(CCertmapPropPage, COlePropertyPage)
  14. //{{AFX_MSG_MAP(CCertmapPropPage)
  15. // NOTE - ClassWizard will add and remove message map entries
  16. // DO NOT EDIT what you see in these blocks of generated code !
  17. //}}AFX_MSG_MAP
  18. END_MESSAGE_MAP()
  19. /////////////////////////////////////////////////////////////////////////////
  20. // Initialize class factory and guid
  21. IMPLEMENT_OLECREATE_EX(CCertmapPropPage, "CERTMAP.CertmapPropPage.1",
  22. 0xbbd8f29c, 0x6f61, 0x11d0, 0xa2, 0x6e, 0x8, 0, 0x2b, 0x2c, 0x6f, 0x32)
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CCertmapPropPage::CCertmapPropPageFactory::UpdateRegistry -
  25. // Adds or removes system registry entries for CCertmapPropPage
  26. BOOL CCertmapPropPage::CCertmapPropPageFactory::UpdateRegistry(BOOL bRegister)
  27. {
  28. if (bRegister)
  29. return AfxOleRegisterPropertyPageClass(
  30. AfxGetInstanceHandle(),
  31. m_clsid,
  32. IDS_CERTMAP_PPG,
  33. afxRegApartmentThreading
  34. );
  35. else
  36. return AfxOleUnregisterClass(m_clsid, NULL);
  37. }
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CCertmapPropPage::CCertmapPropPage - Constructor
  40. CCertmapPropPage::CCertmapPropPage() :
  41. COlePropertyPage(IDD, IDS_CERTMAP_PPG_CAPTION)
  42. {
  43. //{{AFX_DATA_INIT(CCertmapPropPage)
  44. m_Caption = _T("");
  45. m_szPath = _T("");
  46. //}}AFX_DATA_INIT
  47. }
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CCertmapPropPage::DoDataExchange - Moves data between page and properties
  50. void CCertmapPropPage::DoDataExchange(CDataExchange* pDX)
  51. {
  52. //{{AFX_DATA_MAP(CCertmapPropPage)
  53. DDP_Text(pDX, IDC_CAPTIONEDIT, m_Caption, _T("Caption") );
  54. DDX_Text(pDX, IDC_CAPTIONEDIT, m_Caption);
  55. DDP_Text(pDX, IDC_MB_PATH, m_szPath, _T("MBPath") );
  56. DDX_Text(pDX, IDC_MB_PATH, m_szPath);
  57. //}}AFX_DATA_MAP
  58. DDP_PostProcessing(pDX);
  59. }
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CCertmapPropPage message handlers