1 // ResizableMDIFrame.h : header file
\r
3 /////////////////////////////////////////////////////////////////////////////
\r
5 // This file is part of ResizableLib
\r
6 // http://sourceforge.net/projects/resizablelib
\r
8 // Copyright (C) 2000-2004 by Paolo Messina
\r
9 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
\r
11 // The contents of this file are subject to the Artistic License (the "License").
\r
12 // You may not use this file except in compliance with the License.
\r
13 // You may obtain a copy of the License at:
\r
14 // http://www.opensource.org/licenses/artistic-license.html
\r
16 // If you find this code useful, credits would be nice!
\r
18 /////////////////////////////////////////////////////////////////////////////
\r
20 #if !defined(AFX_RESIZABLEMDIFRAME_H__INCLUDED_)
\r
21 #define AFX_RESIZABLEMDIFRAME_H__INCLUDED_
\r
25 #endif // _MSC_VER > 1000
\r
27 #include "ResizableMinMax.h"
\r
28 #include "ResizableWndState.h"
\r
29 #include "ResizableLayout.h"
\r
31 /////////////////////////////////////////////////////////////////////////////
\r
32 // CResizableMDIFrame frame
\r
34 class CResizableMDIFrame : public CMDIFrameWnd, public CResizableMinMax,
\r
35 public CResizableWndState, public CResizableLayout
\r
37 DECLARE_DYNCREATE(CResizableMDIFrame)
\r
39 CResizableMDIFrame(); // protected constructor used by dynamic creation
\r
48 // ClassWizard generated virtual function overrides
\r
49 //{{AFX_VIRTUAL(CResizableMDIFrame)
\r
51 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
\r
56 virtual ~CResizableMDIFrame();
\r
58 BOOL EnableSaveRestore(LPCTSTR pszSection, BOOL bRectOnly = FALSE);
\r
60 virtual CWnd* GetResizableWnd() const
\r
62 // make the layout know its parent window
\r
63 return CWnd::FromHandle(m_hWnd);
\r
68 BOOL m_bEnableSaveRestore;
\r
72 CString m_sSection; // section name (identifies a parent window)
\r
75 // Generated message map functions
\r
76 //{{AFX_MSG(CResizableMDIFrame)
\r
77 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
\r
78 afx_msg void OnDestroy();
\r
79 afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpCreateStruct);
\r
80 afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
\r
82 DECLARE_MESSAGE_MAP()
\r
85 /////////////////////////////////////////////////////////////////////////////
\r
87 //{{AFX_INSERT_LOCATION}}
\r
88 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
\r
90 #endif // !defined(AFX_RESIZABLEMDIFRAME_H__INCLUDED_)
\r