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.

55 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. /////////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Microsoft Windows
  5. // Copyright (C) Microsoft Corporation, 2000-2001.
  6. //
  7. // File: TemplatePropertySheet.h
  8. //
  9. // Contents: interface for the CTemplatePropertySheet class.
  10. //
  11. //----------------------------------------------------------------------------
  12. // NTRAID# 496094 CertTMPL: German - Duplicating a template has one of the
  13. // tabs and part of some buttons chopped-off from view.
  14. // This happens because the security page is added on the fly: the property
  15. // sheet size is already calculated. So add a dummy placeholder to ensure
  16. // the correct size of the property sheet and then remove it on the fly.
  17. #if !defined(AFX_TEMPLATEPROPERTYSHEET_H__E4EE749E_308A_4F88_8DA0_97E1EF292D67__INCLUDED_)
  18. #define AFX_TEMPLATEPROPERTYSHEET_H__E4EE749E_308A_4F88_8DA0_97E1EF292D67__INCLUDED_
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. #include "CertTemplate.h"
  23. class CTemplatePropertySheet : public CPropertySheet
  24. {
  25. public:
  26. CTemplatePropertySheet(
  27. LPCTSTR pszCaption,
  28. CCertTemplate& m_rCertTemplate,
  29. CWnd *pParentWnd = NULL,
  30. UINT iSelectPage = 0 );
  31. virtual ~CTemplatePropertySheet();
  32. protected:
  33. virtual BOOL OnInitDialog();
  34. // Generated message map functions
  35. //{{AFX_MSG(CTemplatePropertySheet)
  36. //}}AFX_MSG
  37. afx_msg LRESULT OnAddSecurityPage (WPARAM, LPARAM);
  38. afx_msg LRESULT OnSetOKDefault (WPARAM, LPARAM);
  39. DECLARE_MESSAGE_MAP()
  40. BOOL OnHelp(WPARAM wParam, LPARAM lParam);
  41. virtual void DoContextHelp (HWND hWndControl);
  42. private:
  43. CCertTemplate& m_rCertTemplate;
  44. LPSECURITYINFO m_pReleaseMe;
  45. };
  46. #endif // !defined(AFX_TEMPLATEPROPERTYSHEET_H__E4EE749E_308A_4F88_8DA0_97E1EF292D67__INCLUDED_)