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.

69 lines
2.1 KiB

  1. #if !defined(AFX_SELECTTEMPLATEDLG_H__3974984C_4767_407B_ADE4_0017F635E553__INCLUDED_)
  2. #define AFX_SELECTTEMPLATEDLG_H__3974984C_4767_407B_ADE4_0017F635E553__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SelectTemplateDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSelectTemplateDlg dialog
  10. class CSelectTemplateDlg : public CHelpDialog
  11. {
  12. // Construction
  13. public:
  14. CStringList m_returnedTemplates;
  15. CSelectTemplateDlg(CWnd* pParent,
  16. const CCertTmplComponentData* pCompData,
  17. const CStringList& supercededNameList); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(CSelectTemplateDlg)
  20. enum { IDD = IDD_SELECT_TEMPLATE };
  21. CListCtrl m_templateList;
  22. //}}AFX_DATA
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CSelectTemplateDlg)
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. virtual void DoContextHelp (HWND hWndControl);
  32. int GetSelectedListItem();
  33. void EnableControls();
  34. // Generated message map functions
  35. //{{AFX_MSG(CSelectTemplateDlg)
  36. afx_msg void OnTemplateProperties();
  37. virtual BOOL OnInitDialog();
  38. virtual void OnOK();
  39. afx_msg void OnItemchangedTemplateList(NMHDR* pNMHDR, LRESULT* pResult);
  40. afx_msg void OnDblclkTemplateList(NMHDR* pNMHDR, LRESULT* pResult);
  41. afx_msg void OnDeleteitemTemplateList(NMHDR* pNMHDR, LRESULT* pResult);
  42. afx_msg void OnDestroy();
  43. //}}AFX_MSG
  44. DECLARE_MESSAGE_MAP()
  45. private:
  46. const CStringList& m_supercededTemplateNameList;
  47. WTL::CImageList m_imageListSmall;
  48. WTL::CImageList m_imageListNormal;
  49. const CCertTmplComponentData* m_pCompData;
  50. enum {
  51. COL_CERT_TEMPLATE = 0,
  52. COL_CERT_VERSION,
  53. NUM_COLS // must be last
  54. };
  55. };
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_SELECTTEMPLATEDLG_H__3974984C_4767_407B_ADE4_0017F635E553__INCLUDED_)