1 /////////////////////////////////////////////////////////////////////////////
3 // This file is part of ResizableLib
4 // http://sourceforge.net/projects/resizablelib
6 // Copyright (C) 2000-2004 by Paolo Messina
7 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
9 // The contents of this file are subject to the Artistic License (the "License").
10 // You may not use this file except in compliance with the License.
11 // You may obtain a copy of the License at:
12 // http://www.opensource.org/licenses/artistic-license.html
14 // If you find this code useful, credits would be nice!
16 /////////////////////////////////////////////////////////////////////////////
20 * @brief Interface for the CResizableWndState class.
23 #if !defined(AFX_RESIZABLEWNDSTATE_H__INCLUDED_)
24 #define AFX_RESIZABLEWNDSTATE_H__INCLUDED_
28 #endif // _MSC_VER > 1000
30 #include "ResizableState.h"
32 /*! @addtogroup CoreComponents
36 //! @brief Persists window position, size and state
38 * Derive from this class when you want to persist the size, position and
39 * minimized/maximized state of top level windows.
40 * This class is used in the provided resizable counterparts of
41 * the standard MFC window and dialog classes.
43 class CResizableWndState
: public CResizableState
47 //! @brief Load and set the window position and size
48 BOOL
LoadWindowRect(LPCTSTR pszName
, BOOL bRectOnly
, BOOL bHorzResize
, BOOL bVertResize
);
50 //! @brief Save the current window position and size
51 BOOL
SaveWindowRect(LPCTSTR pszName
, BOOL bRectOnly
);
53 //! @brief Override to provide the parent window
54 virtual CWnd
* GetResizableWnd() const = 0;
58 virtual ~CResizableWndState();
62 #endif // !defined(AFX_RESIZABLEWNDSTATE_H__INCLUDED_)