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.

82 lines
2.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000-2001.
  5. //
  6. // File: TemplateV2SupercedesPropertyPage.h
  7. //
  8. // Contents: Definition of CTemplateV2SupercedesPropertyPage
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_TEMPLATEV2SUPERCEDESPROPERTYPAGE_H__13B90B4A_2B60_492A_910F_8DA4383BDD8C__INCLUDED_)
  12. #define AFX_TEMPLATEV2SUPERCEDESPROPERTYPAGE_H__13B90B4A_2B60_492A_910F_8DA4383BDD8C__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // TemplateV2SupercedesPropertyPage.h : header file
  17. //
  18. #include "CertTemplate.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CTemplateV2SupercedesPropertyPage dialog
  21. class CTemplateV2SupercedesPropertyPage : public CHelpPropertyPage
  22. {
  23. // Construction
  24. public:
  25. CTemplateV2SupercedesPropertyPage(CCertTemplate& rCertTemplate,
  26. bool& rbIsDirty,
  27. const CCertTmplComponentData* pCompData);
  28. ~CTemplateV2SupercedesPropertyPage();
  29. // Dialog Data
  30. //{{AFX_DATA(CTemplateV2SupercedesPropertyPage)
  31. enum { IDD = IDD_TEMPLATE_V2_SUPERCEDES };
  32. CListCtrl m_templateList;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generate virtual function overrides
  36. //{{AFX_VIRTUAL(CTemplateV2SupercedesPropertyPage)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. protected:
  42. virtual void DoContextHelp (HWND hWndControl);
  43. HRESULT AddItem (const CString& szTemplateName);
  44. virtual BOOL OnInitDialog();
  45. void EnableControls();
  46. // Generated message map functions
  47. //{{AFX_MSG(CTemplateV2SupercedesPropertyPage)
  48. afx_msg void OnAddSupercededTemplate();
  49. afx_msg void OnRemoveSupercededTemplate();
  50. afx_msg void OnDeleteitemSupercededTemplatesList(NMHDR* pNMHDR, LRESULT* pResult);
  51. afx_msg void OnItemchangedSupercededTemplatesList(NMHDR* pNMHDR, LRESULT* pResult);
  52. afx_msg void OnDestroy();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. bool& m_rbIsDirty;
  57. WTL::CImageList m_imageListSmall;
  58. WTL::CImageList m_imageListNormal;
  59. CCertTemplate& m_rCertTemplate;
  60. const CStringList* m_pGlobalTemplateNameList;
  61. bool m_bGlobalListCreatedByDialog;
  62. const CCertTmplComponentData* m_pCompData;
  63. enum {
  64. COL_CERT_TEMPLATE = 0,
  65. COL_CERT_VERSION,
  66. NUM_COLS // must be last
  67. };
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_TEMPLATEV2SUPERCEDESPROPERTYPAGE_H__13B90B4A_2B60_492A_910F_8DA4383BDD8C__INCLUDED_)