1 // ResizableMinMax.h: interface for the CResizableMinMax class.
3 /////////////////////////////////////////////////////////////////////////////
5 // Copyright (C) 2000-2002 by Paolo Messina
6 // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
8 // The contents of this file are subject to the Artistic License (the "License").
9 // You may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at:
11 // http://www.opensource.org/licenses/artistic-license.html
13 // If you find this code useful, credits would be nice!
15 /////////////////////////////////////////////////////////////////////////////
17 #if !defined(AFX_RESIZABLEMINMAX_H__INCLUDED_)
18 #define AFX_RESIZABLEMINMAX_H__INCLUDED_
22 #endif // _MSC_VER > 1000
24 class CResizableMinMax
33 POINT m_ptMinTrackSize
; // min tracking size
34 POINT m_ptMaxTrackSize
; // max tracking size
35 POINT m_ptMaxPos
; // maximized position
36 POINT m_ptMaxSize
; // maximized size
40 virtual ~CResizableMinMax();
43 void MinMaxInfo(LPMINMAXINFO lpMMI
);
45 void SetMaximizedRect(const CRect
& rc
); // set window rect when maximized
46 void ResetMaximizedRect(); // reset to default maximized rect
47 void SetMinTrackSize(const CSize
& size
); // set minimum tracking size
48 void ResetMinTrackSize(); // reset to default minimum tracking size
49 void SetMaxTrackSize(const CSize
& size
); // set maximum tracking size
50 void ResetMaxTrackSize(); // reset to default maximum tracking size
53 #endif // !defined(AFX_RESIZABLEMINMAX_H__INCLUDED_)