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.

75 lines
2.2 KiB

  1. // CertAuthPpg.cpp : Implementation of the CCertAuthPropPage property page class.
  2. #include "stdafx.h"
  3. #include "certmap.h"
  4. #include "AuthPpg.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. IMPLEMENT_DYNCREATE(CCertAuthPropPage, COlePropertyPage)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // Message map
  13. BEGIN_MESSAGE_MAP(CCertAuthPropPage, COlePropertyPage)
  14. //{{AFX_MSG_MAP(CCertAuthPropPage)
  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(CCertAuthPropPage, "CERTMAP.CertmapCtrl.2",
  22. 0x996ff70, 0xb6a1, 0x11d0, 0x92, 0x92, 0, 0xc0, 0x4f, 0xb6, 0x67, 0x8b)
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CCertAuthPropPage::CCertAuthPropPageFactory::UpdateRegistry -
  25. // Adds or removes system registry entries for CCertAuthPropPage
  26. BOOL CCertAuthPropPage::CCertAuthPropPageFactory::UpdateRegistry(BOOL bRegister)
  27. {
  28. if (bRegister)
  29. return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  30. m_clsid, IDS_CERTAUTH_PPG);
  31. else
  32. return AfxOleUnregisterClass(m_clsid, NULL);
  33. }
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CCertAuthPropPage::CCertAuthPropPage - Constructor
  36. CCertAuthPropPage::CCertAuthPropPage() :
  37. COlePropertyPage(IDD, IDS_CERTAUTH_PPG_CAPTION)
  38. {
  39. //{{AFX_DATA_INIT(CCertAuthPropPage)
  40. m_sz_caption = _T("");
  41. //}}AFX_DATA_INIT
  42. }
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CCertAuthPropPage::DoDataExchange - Moves data between page and properties
  45. void CCertAuthPropPage::DoDataExchange(CDataExchange* pDX)
  46. {
  47. //{{AFX_DATA_MAP(CCertAuthPropPage)
  48. DDP_Text(pDX, IDC_CAPTIONEDIT, m_sz_caption, _T("Caption") );
  49. DDX_Text(pDX, IDC_CAPTIONEDIT, m_sz_caption);
  50. //}}AFX_DATA_MAP
  51. DDP_PostProcessing(pDX);
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CCertAuthPropPage message handlers