ResizableSheetState.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // This file is part of ResizableLib
  4. // https://github.com/ppescher/resizablelib
  5. //
  6. // Copyright (C) 2000-2015 by Paolo Messina
  7. // mailto:ppescher@hotmail.com
  8. //
  9. // The contents of this file are subject to the Artistic License 2.0
  10. // http://opensource.org/licenses/Artistic-2.0
  11. //
  12. // If you find this code useful, credits would be nice!
  13. //
  14. /////////////////////////////////////////////////////////////////////////////
  15. /*!
  16. * @file
  17. * @brief Interface for the CResizableSheetState class.
  18. */
  19. #if !defined(AFX_RESIZABLESHEETSTATE_H__INCLUDED_)
  20. #define AFX_RESIZABLESHEETSTATE_H__INCLUDED_
  21. #if _MSC_VER > 1000
  22. #pragma once
  23. #endif // _MSC_VER > 1000
  24. #include "ResizableWndState.h"
  25. /*! @addtogroup CoreComponents
  26. * @{
  27. */
  28. //! @brief Persists active page in property sheets or wizard dialogs
  29. /*!
  30. * Derive from this class when you want to persist the active page
  31. * in property sheets or wizard dialogs.
  32. * This class is used in the provided resizable counterparts of
  33. * the standard MFC property sheet classes.
  34. */
  35. class CResizableSheetState : public CResizableWndState
  36. {
  37. protected:
  38. //! @brief Load and set the active property page
  39. BOOL LoadPage(LPCTSTR pszName);
  40. //! @brief Save the current active property page
  41. BOOL SavePage(LPCTSTR pszName);
  42. //! @brief Override to provide the parent window
  43. virtual CWnd* GetResizableWnd() const = 0;
  44. public:
  45. CResizableSheetState();
  46. virtual ~CResizableSheetState();
  47. };
  48. // @}
  49. #endif // !defined(AFX_RESIZABLESHEETSTATE_H__INCLUDED_)