Update UNRAR.H
[xy_vsfilter.git] / src / ui / ResizableLib / ResizableMinMax.h
blob557780323f95942c941f56be9aa29c642fc6839b
1 // ResizableMinMax.h: interface for the CResizableMinMax class.
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (C) 2000-2002 by Paolo Messina
6 // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
7 //
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_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif // _MSC_VER > 1000
24 class CResizableMinMax
26 // Attributes
27 private:
28 // flags
29 BOOL m_bUseMaxTrack;
30 BOOL m_bUseMinTrack;
31 BOOL m_bUseMaxRect;
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
38 public:
39 CResizableMinMax();
40 virtual ~CResizableMinMax();
42 protected:
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_)