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.

81 lines
2.3 KiB

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