Update UNRAR.H
[xy_vsfilter.git] / src / ui / ResizableLib / ResizableDialog.h
blob49a016d6599f9a45fc6d3ff0a0816349ed521b6d
1 #if !defined(AFX_RESIZABLEDIALOG_H__INCLUDED_)
2 #define AFX_RESIZABLEDIALOG_H__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 // ResizableDialog.h : header file
9 //
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
38 // Construction
39 public:
40 CResizableDialog();
41 CResizableDialog(UINT nIDTemplate, CWnd* pParentWnd = NULL);
42 CResizableDialog(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL);
44 // Attributes
45 private:
46 // support for temporarily hiding the grip
47 DWORD m_dwGripTempState;
49 // flags
50 BOOL m_bEnableSaveRestore;
51 BOOL m_bRectOnly;
53 // internal status
54 CString m_sSection; // section name (identifies a parent window)
56 // Operations
57 public:
59 // Overrides
60 // ClassWizard generated virtual function overrides
61 //{{AFX_VIRTUAL(CResizableDialog)
62 protected:
63 //}}AFX_VIRTUAL
65 // Implementation
66 public:
67 virtual ~CResizableDialog();
69 // used internally
70 private:
71 void PrivateConstruct();
73 // callable from derived classes
74 protected:
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
81 return this;
84 // Generated message map functions
85 protected:
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);
92 //}}AFX_MSG
93 DECLARE_MESSAGE_MAP()
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_)