1 #if !defined(AFX_RESIZABLEDIALOG_H__INCLUDED_)
\r
2 #define AFX_RESIZABLEDIALOG_H__INCLUDED_
\r
6 #endif // _MSC_VER > 1000
\r
8 // ResizableDialog.h : header file
\r
10 /////////////////////////////////////////////////////////////////////////////
\r
12 // This file is part of ResizableLib
\r
13 // http://sourceforge.net/projects/resizablelib
\r
15 // Copyright (C) 2000-2004 by Paolo Messina
\r
16 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
\r
18 // The contents of this file are subject to the Artistic License (the "License").
\r
19 // You may not use this file except in compliance with the License.
\r
20 // You may obtain a copy of the License at:
\r
21 // http://www.opensource.org/licenses/artistic-license.html
\r
23 // If you find this code useful, credits would be nice!
\r
25 /////////////////////////////////////////////////////////////////////////////
\r
27 #include "ResizableLayout.h"
\r
28 #include "ResizableGrip.h"
\r
29 #include "ResizableMinMax.h"
\r
30 #include "ResizableWndState.h"
\r
32 /////////////////////////////////////////////////////////////////////////////
\r
33 // CResizableDialog window
\r
35 class CResizableDialog : public CDialog, public CResizableLayout,
\r
36 public CResizableGrip, public CResizableMinMax,
\r
37 public CResizableWndState
\r
43 CResizableDialog(UINT nIDTemplate, CWnd* pParentWnd = NULL);
\r
44 CResizableDialog(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL);
\r
48 // support for temporarily hiding the grip
\r
49 DWORD m_dwGripTempState;
\r
52 BOOL m_bEnableSaveRestore;
\r
56 CString m_sSection; // section name (identifies a parent window)
\r
61 int AddOthersToAnchor();
\r
63 // ClassWizard generated virtual function overrides
\r
64 //{{AFX_VIRTUAL(CResizableDialog)
\r
66 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
\r
71 virtual ~CResizableDialog();
\r
75 void PrivateConstruct();
\r
77 // callable from derived classes
\r
79 // section to use in app's profile
\r
80 void EnableSaveRestore(LPCTSTR pszSection, BOOL bRectOnly = FALSE);
\r
82 virtual CWnd* GetResizableWnd() const
\r
84 // make the layout know its parent window
\r
85 return CWnd::FromHandle(m_hWnd);
\r
88 // Generated message map functions
\r
90 //{{AFX_MSG(CResizableDialog)
\r
91 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
\r
92 afx_msg void OnSize(UINT nType, int cx, int cy);
\r
93 afx_msg void OnDestroy();
\r
94 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
\r
95 afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpCreateStruct);
\r
97 DECLARE_MESSAGE_MAP()
\r
100 /////////////////////////////////////////////////////////////////////////////
\r
102 //{{AFX_INSERT_LOCATION}}
\r
103 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
\r
105 #endif // !defined(AFX_RESIZABLEDIALOG_H__INCLUDED_)
\r