Leaked source code of windows server 2003
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.

71 lines
1.4 KiB

  1. #include "stdafx.h"
  2. #include "certwiz.h"
  3. #include "Certificat.h"
  4. #include "CertUtil.h"
  5. #include "CertSiteUsage.h"
  6. #include "YesNoUsage.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CYesNoUsage
  14. CYesNoUsage::CYesNoUsage(CCertificate * pCert,IN CWnd * pParent OPTIONAL)
  15. : CDialog(CYesNoUsage::IDD,pParent)
  16. {
  17. m_pCert = pCert;
  18. //{{AFX_DATA_INIT(CYesNoUsage)
  19. //}}AFX_DATA_INIT
  20. }
  21. CYesNoUsage::~CYesNoUsage()
  22. {
  23. }
  24. void CYesNoUsage::DoDataExchange(CDataExchange* pDX)
  25. {
  26. CDialog::DoDataExchange(pDX);
  27. //{{AFX_DATA_MAP(CYesNoUsage)
  28. //}}AFX_DATA_MAP
  29. }
  30. BEGIN_MESSAGE_MAP(CYesNoUsage, CDialog)
  31. //{{AFX_MSG_MAP(CYesNoUsage)
  32. ON_BN_CLICKED(IDC_USAGE_DISPLAY, OnUsageDisplay)
  33. ON_BN_CLICKED(IDC_USAGE_YES, OnOK)
  34. ON_BN_CLICKED(IDC_USAGE_NO, OnCancel)
  35. //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CYesNoUsage message handlers
  39. BOOL CYesNoUsage::OnInitDialog()
  40. {
  41. CDialog::OnInitDialog();
  42. return TRUE;
  43. }
  44. void CYesNoUsage::OnUsageDisplay()
  45. {
  46. // Display the usage dialog
  47. CDialog UsageDialog(IDD_DIALOG_DISPLAY_SITES);
  48. UsageDialog.DoModal();
  49. return;
  50. }
  51. void CYesNoUsage::OnOK()
  52. {
  53. CDialog::OnOK();
  54. return;
  55. }
  56. void CYesNoUsage::OnCancel()
  57. {
  58. CDialog::OnCancel();
  59. return;
  60. }