Save all settings not just changed ones
[TortoiseGit.git] / ext / ResizableLib / ResizableWndState.h
blob1f87d261791b3e5be8b21007b55e601ee9aaa00c
1 /////////////////////////////////////////////////////////////////////////////
2 //
3 // This file is part of ResizableLib
4 // http://sourceforge.net/projects/resizablelib
5 //
6 // Copyright (C) 2000-2004 by Paolo Messina
7 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
8 //
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 /////////////////////////////////////////////////////////////////////////////
18 /*!
19 * @file
20 * @brief Interface for the CResizableWndState class.
23 #if !defined(AFX_RESIZABLEWNDSTATE_H__INCLUDED_)
24 #define AFX_RESIZABLEWNDSTATE_H__INCLUDED_
26 #if _MSC_VER > 1000
27 #pragma once
28 #endif // _MSC_VER > 1000
30 #include "ResizableState.h"
32 /*! @addtogroup CoreComponents
33 * @{
36 //! @brief Persists window position, size and state
37 /*!
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
45 protected:
47 //! @brief Load and set the window position and size
48 BOOL LoadWindowRect(LPCTSTR pszName, BOOL bRectOnly);
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;
56 public:
57 CResizableWndState();
58 virtual ~CResizableWndState();
61 // @}
62 #endif // !defined(AFX_RESIZABLEWNDSTATE_H__INCLUDED_)