diff options
Diffstat (limited to 'src/ui/ResizableLib/ResizableSheet.h')
-rw-r--r-- | src/ui/ResizableLib/ResizableSheet.h | 101 |
1 files changed, 52 insertions, 49 deletions
diff --git a/src/ui/ResizableLib/ResizableSheet.h b/src/ui/ResizableLib/ResizableSheet.h index c82a63798..868aeb60f 100644 --- a/src/ui/ResizableLib/ResizableSheet.h +++ b/src/ui/ResizableLib/ResizableSheet.h @@ -11,7 +11,7 @@ // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
//
// The contents of this file are subject to the Artistic License (the "License").
-// You may not use this file except in compliance with the License.
+// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
// http://www.opensource.org/licenses/artistic-license.html
//
@@ -29,84 +29,87 @@ //
class CResizableSheet : public CPropertySheet, public CResizableLayout,
- public CResizableGrip, public CResizableMinMax,
- public CResizableState
+ public CResizableGrip, public CResizableMinMax,
+ public CResizableState
{
- DECLARE_DYNAMIC(CResizableSheet)
+ DECLARE_DYNAMIC(CResizableSheet)
// Construction
public:
- CResizableSheet();
- CResizableSheet(UINT nIDCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0);
- CResizableSheet(LPCTSTR pszCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0);
+ CResizableSheet();
+ CResizableSheet(UINT nIDCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0);
+ CResizableSheet(LPCTSTR pszCaption, CWnd *pParentWnd = NULL, UINT iSelectPage = 0);
// Attributes
private:
- // support for temporarily hiding the grip
- DWORD m_dwGripTempState;
+ // support for temporarily hiding the grip
+ DWORD m_dwGripTempState;
- // flags
- BOOL m_bEnableSaveRestore;
- BOOL m_bRectOnly;
- BOOL m_bSavePage;
+ // flags
+ BOOL m_bEnableSaveRestore;
+ BOOL m_bRectOnly;
+ BOOL m_bSavePage;
- // layout vars
- CSize m_sizePageTL, m_sizePageBR;
+ // layout vars
+ CSize m_sizePageTL, m_sizePageBR;
- // internal status
- CString m_sSection; // section name (identifies a parent window)
+ // internal status
+ CString m_sSection; // section name (identifies a parent window)
// Operations
public:
// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CResizableSheet)
- public:
- virtual BOOL OnInitDialog();
- //}}AFX_VIRTUAL
- protected:
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CResizableSheet)
+public:
+ virtual BOOL OnInitDialog();
+ //}}AFX_VIRTUAL
+protected:
// Implementation
public:
- void RefreshLayout();
- virtual ~CResizableSheet();
+ void RefreshLayout();
+ virtual ~CResizableSheet();
// used internally
private:
- void PresetLayout();
- void PrivateConstruct();
- void SavePage();
- void LoadPage();
+ void PresetLayout();
+ void PrivateConstruct();
+ void SavePage();
+ void LoadPage();
- BOOL IsWizard() { return (m_psh.dwFlags & PSH_WIZARD); }
+ BOOL IsWizard()
+ {
+ return (m_psh.dwFlags & PSH_WIZARD);
+ }
// callable from derived classes
protected:
- // section to use in app's profile
- void EnableSaveRestore(LPCTSTR pszSection, BOOL bRectOnly = FALSE,
- BOOL bWithPage = FALSE);
- int GetMinWidth(); // minimum width to display all buttons
+ // section to use in app's profile
+ void EnableSaveRestore(LPCTSTR pszSection, BOOL bRectOnly = FALSE,
+ BOOL bWithPage = FALSE);
+ int GetMinWidth(); // minimum width to display all buttons
- virtual CWnd* GetResizableWnd()
- {
- // make the layout know its parent window
- return this;
- };
+ virtual CWnd* GetResizableWnd()
+ {
+ // make the layout know its parent window
+ return this;
+ };
// Generated message map functions
protected:
- virtual BOOL ArrangeLayoutCallback(LayoutInfo& layout);
- //{{AFX_MSG(CResizableSheet)
- afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnDestroy();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- //}}AFX_MSG
- afx_msg BOOL OnPageChanging(NMHDR* pNotifyStruct, LRESULT* pResult);
- DECLARE_MESSAGE_MAP()
+ virtual BOOL ArrangeLayoutCallback(LayoutInfo& layout);
+ //{{AFX_MSG(CResizableSheet)
+ afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
+ afx_msg void OnSize(UINT nType, int cx, int cy);
+ afx_msg void OnDestroy();
+ afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
+ afx_msg BOOL OnEraseBkgnd(CDC* pDC);
+ //}}AFX_MSG
+ afx_msg BOOL OnPageChanging(NMHDR* pNotifyStruct, LRESULT* pResult);
+ DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
|