1 #if !defined(AFX_RESIZABLEDIALOG_H__INCLUDED_)
2 #define AFX_RESIZABLEDIALOG_H__INCLUDED_
6 #endif // _MSC_VER > 1000
8 // ResizableDialog.h : header file
10 /////////////////////////////////////////////////////////////////////////////
12 // Copyright (C) 2000-2002 by Paolo Messina
13 // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
15 // The contents of this file are subject to the Artistic License (the "License").
16 // You may not use this file except in compliance with the License.
17 // You may obtain a copy of the License at:
18 // http://www.opensource.org/licenses/artistic-license.html
20 // If you find this code useful, credits would be nice!
22 /////////////////////////////////////////////////////////////////////////////
24 #include "ResizableLayout.h"
25 #include "ResizableGrip.h"
26 #include "ResizableMinMax.h"
27 #include "ResizableState.h"
28 #include "..\CmdUI\CmdUI.h"
30 /////////////////////////////////////////////////////////////////////////////
31 // CResizableDialog window
33 class CResizableDialog
: public CCmdUIDialog
, public CResizableLayout
,
34 public CResizableGrip
, public CResizableMinMax
,
35 public CResizableState
41 CResizableDialog(UINT nIDTemplate
, CWnd
* pParentWnd
= NULL
);
42 CResizableDialog(LPCTSTR lpszTemplateName
, CWnd
* pParentWnd
= NULL
);
46 // support for temporarily hiding the grip
47 DWORD m_dwGripTempState
;
50 BOOL m_bEnableSaveRestore
;
54 CString m_sSection
; // section name (identifies a parent window)
60 // ClassWizard generated virtual function overrides
61 //{{AFX_VIRTUAL(CResizableDialog)
67 virtual ~CResizableDialog();
71 void PrivateConstruct();
73 // callable from derived classes
75 // section to use in app's profile
76 void EnableSaveRestore(LPCTSTR pszSection
, BOOL bRectOnly
= FALSE
);
78 virtual CWnd
* GetResizableWnd()
80 // make the layout know its parent window
84 // Generated message map functions
86 //{{AFX_MSG(CResizableDialog)
87 afx_msg
void OnGetMinMaxInfo(MINMAXINFO FAR
* lpMMI
);
88 afx_msg
void OnSize(UINT nType
, int cx
, int cy
);
89 afx_msg
void OnDestroy();
90 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct
);
91 afx_msg BOOL
OnEraseBkgnd(CDC
* pDC
);
96 /////////////////////////////////////////////////////////////////////////////
98 //{{AFX_INSERT_LOCATION}}
99 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
101 #endif // !defined(AFX_RESIZABLEDIALOG_H__INCLUDED_)