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.

72 lines
1.9 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. IDD_PAGE_PREV_REPLACE = IDD_PAGE_WIZ_MANAGE_CERT,
  29. IDD_PAGE_PREV_INSTALL = IDD_PAGE_WIZ_GET_WHAT
  30. };
  31. // Dialog Data
  32. //{{AFX_DATA(CChooseCertPage)
  33. enum { IDD = IDD_PAGE_WIZ_CHOOSE_CERT };
  34. CCertListCtrl m_CertList;
  35. //}}AFX_DATA
  36. CCertificate * m_pCert;
  37. CCertDescList m_DescList;
  38. // Overrides
  39. // ClassWizard generate virtual function overrides
  40. //{{AFX_VIRTUAL(CChooseCertPage)
  41. public:
  42. virtual LRESULT OnWizardBack();
  43. virtual LRESULT OnWizardNext();
  44. virtual BOOL OnSetActive();
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. protected:
  50. // Generated message map functions
  51. //{{AFX_MSG(CChooseCertPage)
  52. virtual BOOL OnInitDialog();
  53. afx_msg void OnClickCertList(NMHDR* pNMHDR, LRESULT* pResult);
  54. afx_msg void OnDblClickCertList(NMHDR* pNMHDR, LRESULT* pResult);
  55. afx_msg void OnDestroy();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_REPLACECHOOSECERT_H__F126182F_4039_11D2_9318_0060088FF80E__INCLUDED_)