Fixed issue #2250: bugtraq.logregex Test incorrectly saves the order of the fields
[TortoiseGit.git] / ext / ResizableLib / ResizableFormView.h
blob5cc762b1d55b79e84fd697eb381d42bccff76410
1 #if !defined(AFX_RESIZABLEFORMVIEW_H__INCLUDED_)
2 #define AFX_RESIZABLEFORMVIEW_H__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 // ResizableFormView.h : header file
9 //
10 /////////////////////////////////////////////////////////////////////////////
12 // This file is part of ResizableLib
13 // http://sourceforge.net/projects/resizablelib
15 // Copyright (C) 2000-2004 by Paolo Messina
16 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
18 // The contents of this file are subject to the Artistic License (the "License").
19 // You may not use this file except in compliance with the License.
20 // You may obtain a copy of the License at:
21 // http://www.opensource.org/licenses/artistic-license.html
23 // If you find this code useful, credits would be nice!
25 /////////////////////////////////////////////////////////////////////////////
27 #include "ResizableLayout.h"
28 #include "ResizableGrip.h"
29 #include "ResizableMinMax.h"
31 /////////////////////////////////////////////////////////////////////////////
32 // CResizableFormView form view
34 #include <afxext.h>
36 class CResizableFormView : public CFormView, public CResizableLayout,
37 public CResizableGrip, public CResizableMinMax
39 DECLARE_DYNAMIC(CResizableFormView)
41 // Construction
42 protected: // must derive your own class
43 CResizableFormView(UINT nIDTemplate);
44 CResizableFormView(LPCTSTR lpszTemplateName);
45 virtual ~CResizableFormView();
47 private:
48 void PrivateConstruct();
50 // support for temporarily hiding the grip
51 DWORD m_dwGripTempState;
52 enum GripHideReason // bitmask
54 GHR_MAXIMIZED = 0x01,
55 GHR_SCROLLBAR = 0x02,
56 GHR_ALIGNMENT = 0x04,
59 // called from base class
60 protected:
62 virtual void GetTotalClientRect(LPRECT lpRect) const;
64 virtual CWnd* GetResizableWnd() const
66 // make the layout know its parent window
67 return CWnd::FromHandle(m_hWnd);
71 // Attributes
72 public:
74 // Operations
75 public:
77 // Overrides
78 public:
79 // ClassWizard generated virtual function overrides
80 //{{AFX_VIRTUAL(CResizableFormView)
81 protected:
82 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
83 //}}AFX_VIRTUAL
85 // Implementation
86 protected:
88 #ifdef _DEBUG
89 virtual void AssertValid() const;
90 virtual void Dump(CDumpContext& dc) const;
91 #endif
93 // Generated message map functions
94 //{{AFX_MSG(CResizableFormView)
95 afx_msg void OnSize(UINT nType, int cx, int cy);
96 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
97 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
98 afx_msg void OnDestroy();
99 virtual BOOL OnInitDialog();
100 afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpCreateStruct);
101 //}}AFX_MSG
102 DECLARE_MESSAGE_MAP()
105 /////////////////////////////////////////////////////////////////////////////
107 //{{AFX_INSERT_LOCATION}}
108 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
110 #endif // !defined(AFX_RESIZABLEFORMVIEW_H__INCLUDED_)