diff options
Diffstat (limited to 'src/ui/ResizableLib/ResizableMinMax.cpp')
-rw-r--r-- | src/ui/ResizableLib/ResizableMinMax.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/ui/ResizableLib/ResizableMinMax.cpp b/src/ui/ResizableLib/ResizableMinMax.cpp index f137b8d09..0a19f3002 100644 --- a/src/ui/ResizableLib/ResizableMinMax.cpp +++ b/src/ui/ResizableLib/ResizableMinMax.cpp @@ -6,7 +6,7 @@ // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
//
// The contents of this file are subject to the Artistic License (the "License").
-// You may not use this file except in compliance with the License.
+// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
// http://www.opensource.org/licenses/artistic-license.html
//
@@ -23,9 +23,9 @@ CResizableMinMax::CResizableMinMax()
{
- m_bUseMinTrack = FALSE;
- m_bUseMaxTrack = FALSE;
- m_bUseMaxRect = FALSE;
+ m_bUseMinTrack = FALSE;
+ m_bUseMaxTrack = FALSE;
+ m_bUseMaxRect = FALSE;
}
CResizableMinMax::~CResizableMinMax()
@@ -35,55 +35,55 @@ CResizableMinMax::~CResizableMinMax() void CResizableMinMax::MinMaxInfo(LPMINMAXINFO lpMMI)
{
- if(m_bUseMinTrack)
- lpMMI->ptMinTrackSize = m_ptMinTrackSize;
+ if (m_bUseMinTrack)
+ lpMMI->ptMinTrackSize = m_ptMinTrackSize;
- if(m_bUseMaxTrack)
- lpMMI->ptMaxTrackSize = m_ptMaxTrackSize;
+ if (m_bUseMaxTrack)
+ lpMMI->ptMaxTrackSize = m_ptMaxTrackSize;
- if(m_bUseMaxRect)
- {
- lpMMI->ptMaxPosition = m_ptMaxPos;
- lpMMI->ptMaxSize = m_ptMaxSize;
- }
+ if (m_bUseMaxRect)
+ {
+ lpMMI->ptMaxPosition = m_ptMaxPos;
+ lpMMI->ptMaxSize = m_ptMaxSize;
+ }
}
void CResizableMinMax::SetMaximizedRect(const CRect& rc)
{
- m_bUseMaxRect = TRUE;
+ m_bUseMaxRect = TRUE;
- m_ptMaxPos = rc.TopLeft();
- m_ptMaxSize.x = rc.Width();
- m_ptMaxSize.y = rc.Height();
+ m_ptMaxPos = rc.TopLeft();
+ m_ptMaxSize.x = rc.Width();
+ m_ptMaxSize.y = rc.Height();
}
void CResizableMinMax::ResetMaximizedRect()
{
- m_bUseMaxRect = FALSE;
+ m_bUseMaxRect = FALSE;
}
void CResizableMinMax::SetMinTrackSize(const CSize& size)
{
- m_bUseMinTrack = TRUE;
+ m_bUseMinTrack = TRUE;
- m_ptMinTrackSize.x = size.cx;
- m_ptMinTrackSize.y = size.cy;
+ m_ptMinTrackSize.x = size.cx;
+ m_ptMinTrackSize.y = size.cy;
}
void CResizableMinMax::ResetMinTrackSize()
{
- m_bUseMinTrack = FALSE;
+ m_bUseMinTrack = FALSE;
}
void CResizableMinMax::SetMaxTrackSize(const CSize& size)
{
- m_bUseMaxTrack = TRUE;
+ m_bUseMaxTrack = TRUE;
- m_ptMaxTrackSize.x = size.cx;
- m_ptMaxTrackSize.y = size.cy;
+ m_ptMaxTrackSize.x = size.cx;
+ m_ptMaxTrackSize.y = size.cy;
}
void CResizableMinMax::ResetMaxTrackSize()
{
- m_bUseMaxTrack = FALSE;
+ m_bUseMaxTrack = FALSE;
}
|