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.

76 lines
2.1 KiB

  1. #if !defined(AFX_REPLACECHOOSECERT_H__F126182F_4039_11D2_9318_0060088FF80E__INCLUDED_)
  2. #define AFX_REPLACECHOOSECERT_H__F126182F_4039_11D2_9318_0060088FF80E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ChooseCertPage.h : header file
  7. //
  8. #include "Certificat.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CChooseCertPage dialog
  11. class CCertListCtrl : public CListCtrl
  12. {
  13. public:
  14. int GetSelectedIndex();
  15. void AdjustStyle();
  16. };
  17. class CChooseCertPage : public CIISWizardPage
  18. {
  19. DECLARE_DYNCREATE(CChooseCertPage)
  20. // Construction
  21. public:
  22. CChooseCertPage(CCertificate * pCert = NULL);
  23. ~CChooseCertPage();
  24. enum
  25. {
  26. IDD_PAGE_NEXT_REPLACE = IDD_PAGE_WIZ_REPLACE_CERT,
  27. IDD_PAGE_NEXT_INSTALL = IDD_PAGE_WIZ_INSTALL_CERT,
  28. #ifdef ENABLE_W3SVC_SSL_PAGE
  29. IDD_PAGE_NEXT_INSTALL_W3SVC_ONLY = IDD_PAGE_WIZ_GET_SSL_PORT,
  30. #endif
  31. IDD_PAGE_PREV_REPLACE = IDD_PAGE_WIZ_MANAGE_CERT,
  32. IDD_PAGE_PREV_INSTALL = IDD_PAGE_WIZ_GET_WHAT
  33. };
  34. // Dialog Data
  35. //{{AFX_DATA(CChooseCertPage)
  36. enum { IDD = IDD_PAGE_WIZ_CHOOSE_CERT };
  37. CCertListCtrl m_CertList;
  38. //}}AFX_DATA
  39. CCertificate * m_pCert;
  40. CCertDescList m_DescList;
  41. // Overrides
  42. // ClassWizard generate virtual function overrides
  43. //{{AFX_VIRTUAL(CChooseCertPage)
  44. public:
  45. virtual LRESULT OnWizardBack();
  46. virtual LRESULT OnWizardNext();
  47. virtual BOOL OnSetActive();
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(CChooseCertPage)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnClickCertList(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg void OnDblClickCertList(NMHDR* pNMHDR, LRESULT* pResult);
  58. afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnDestroy();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_REPLACECHOOSECERT_H__F126182F_4039_11D2_9318_0060088FF80E__INCLUDED_)