ResizableMinMax.h

00001 // ResizableMinMax.h: interface for the CResizableMinMax class.
00002 //
00004 //
00005 // Copyright (C) 2000-2002 by Paolo Messina
00006 // (http://www.geocities.com/ppescher - [email protected])
00007 //
00008 // The contents of this file are subject to the Artistic License (the "License").
00009 // You may not use this file except in compliance with the License. 
00010 // You may obtain a copy of the License at:
00011 // http://www.opensource.org/licenses/artistic-license.html
00012 //
00013 // If you find this code useful, credits would be nice!
00014 //
00016 
00017 #if !defined(AFX_RESIZABLEMINMAX_H__INCLUDED_)
00018 #define AFX_RESIZABLEMINMAX_H__INCLUDED_
00019 
00020 #if _MSC_VER > 1000
00021 #pragma once
00022 #endif // _MSC_VER > 1000
00023 
00024 class CResizableMinMax  
00025 {
00026 // Attributes
00027 private:
00028         // flags
00029         BOOL m_bUseMaxTrack;
00030         BOOL m_bUseMinTrack;
00031         BOOL m_bUseMaxRect;
00032 
00033         POINT m_ptMinTrackSize;         // min tracking size
00034         POINT m_ptMaxTrackSize;         // max tracking size
00035         POINT m_ptMaxPos;                       // maximized position
00036         POINT m_ptMaxSize;                      // maximized size
00037 
00038 public:
00039         CResizableMinMax();
00040         virtual ~CResizableMinMax();
00041 
00042 protected:
00043         void MinMaxInfo(LPMINMAXINFO lpMMI);
00044 
00045         void SetMaximizedRect(const CRect& rc);         // set window rect when maximized
00046         void ResetMaximizedRect();                                      // reset to default maximized rect
00047         void SetMinTrackSize(const CSize& size);        // set minimum tracking size
00048         void ResetMinTrackSize();                                       // reset to default minimum tracking size
00049         void SetMaxTrackSize(const CSize& size);        // set maximum tracking size
00050         void ResetMaxTrackSize();                                       // reset to default maximum tracking size
00051 };
00052 
00053 #endif // !defined(AFX_RESIZABLEMINMAX_H__INCLUDED_)

Generated on Tue Dec 13 14:47:57 2005 for guliverkli by  doxygen 1.4.5