Update Scintilla to v3.4.1
[TortoiseGit.git] / ext / ResizableLib / ResizableMDIChild.h
blob874d1ad2360a32c926ae30f444c488771e45dcfa
1 #if !defined(AFX_RESIZABLEMDICHILD_H__INCLUDED_)
2 #define AFX_RESIZABLEMDICHILD_H__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // ResizableMDIChild.h : header file
8 //
9 /////////////////////////////////////////////////////////////////////////////
11 // This file is part of ResizableLib
12 // http://sourceforge.net/projects/resizablelib
14 // Copyright (C) 2000-2004 by Paolo Messina
15 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
17 // The contents of this file are subject to the Artistic License (the "License").
18 // You may not use this file except in compliance with the License.
19 // You may obtain a copy of the License at:
20 // http://www.opensource.org/licenses/artistic-license.html
22 // If you find this code useful, credits would be nice!
24 /////////////////////////////////////////////////////////////////////////////
26 #include "ResizableMinMax.h"
27 #include "ResizableWndState.h"
28 #include "ResizableLayout.h"
30 /////////////////////////////////////////////////////////////////////////////
31 // CResizableMDIChild frame
33 class CResizableMDIChild : public CMDIChildWnd, public CResizableMinMax,
34 public CResizableWndState, public CResizableLayout
36 DECLARE_DYNCREATE(CResizableMDIChild)
37 protected:
38 CResizableMDIChild(); // protected constructor used by dynamic creation
40 // Attributes
41 public:
43 // Operations
44 public:
46 // Overrides
47 // ClassWizard generated virtual function overrides
48 //{{AFX_VIRTUAL(CResizableMDIChild)
49 protected:
50 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
51 //}}AFX_VIRTUAL
53 // Implementation
54 protected:
55 virtual ~CResizableMDIChild();
57 BOOL EnableSaveRestore(LPCTSTR pszSection, BOOL bRectOnly = FALSE);
59 virtual CWnd* GetResizableWnd() const
61 // make the layout know its parent window
62 return CWnd::FromHandle(m_hWnd);
65 private:
66 // flags
67 BOOL m_bEnableSaveRestore;
68 BOOL m_bRectOnly;
70 // internal status
71 CString m_sSection; // section name (identifies a parent window)
73 protected:
74 // Generated message map functions
75 //{{AFX_MSG(CResizableMDIChild)
76 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
77 afx_msg void OnSize(UINT nType, int cx, int cy);
78 afx_msg void OnDestroy();
79 afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpCreateStruct);
80 //}}AFX_MSG
81 DECLARE_MESSAGE_MAP()
84 /////////////////////////////////////////////////////////////////////////////
86 //{{AFX_INSERT_LOCATION}}
87 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
89 #endif // !defined(AFX_RESIZABLEMDICHILD_H__INCLUDED_)