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.

77 lines
2.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: ExtendedKeyUsagePropertyPage.h
  7. //
  8. // Contents: Definition of CExtendedKeyUsagePropertyPage
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_EXTENDEDKEYUSAGEPROPERTYPAGE_H__71F4BE79_981E_4D84_BE10_3BA145D665E3__INCLUDED_)
  12. #define AFX_EXTENDEDKEYUSAGEPROPERTYPAGE_H__71F4BE79_981E_4D84_BE10_3BA145D665E3__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // ExtendedKeyUsagePropertyPage.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. class EKUCheckListBox : public CCheckListBox
  20. {
  21. public:
  22. EKUCheckListBox () : CCheckListBox () {};
  23. virtual ~EKUCheckListBox () {};
  24. virtual BOOL Create (DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID)
  25. {
  26. CThemeContextActivator activator;
  27. return CCheckListBox::Create (dwStyle, rect, pParentWnd, nID);
  28. }
  29. };
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CExtendedKeyUsagePropertyPage dialog
  32. class CExtendedKeyUsagePropertyPage : public CPropertyPage
  33. {
  34. // Construction
  35. public:
  36. CExtendedKeyUsagePropertyPage(
  37. CCertTemplate& rCertTemplate,
  38. PCERT_EXTENSION pCertExtension); // standard constructor
  39. // Dialog Data
  40. //{{AFX_DATA(CExtendedKeyUsagePropertyPage)
  41. enum { IDD = IDD_EXTENDED_KEY_USAGE };
  42. EKUCheckListBox m_EKUList;
  43. //}}AFX_DATA
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(CExtendedKeyUsagePropertyPage)
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(CExtendedKeyUsagePropertyPage)
  54. afx_msg void OnNewEku();
  55. virtual BOOL OnInitDialog();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. private:
  59. CCertTemplate& m_rCertTemplate;
  60. PCERT_EXTENSION m_pCertExtension;
  61. };
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_EXTENDEDKEYUSAGEPROPERTYPAGE_H__71F4BE79_981E_4D84_BE10_3BA145D665E3__INCLUDED_)