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