RepositoryBrowser: Add drag handler
[TortoiseGit.git] / ext / ResizableLib / ResizableMDIFrame.h
blobef7b4d80738d6ffe76384ac25f3a80ab0b769ff6
1 // ResizableMDIFrame.h : header file
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // This file is part of ResizableLib
6 // http://sourceforge.net/projects/resizablelib
7 //
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_
23 #if _MSC_VER > 1000
24 #pragma once
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)
38 protected:
39 CResizableMDIFrame(); // protected constructor used by dynamic creation
41 // Attributes
42 protected:
44 // Operations
45 public:
47 // Overrides
48 // ClassWizard generated virtual function overrides
49 //{{AFX_VIRTUAL(CResizableMDIFrame)
50 protected:
51 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
52 //}}AFX_VIRTUAL
54 // Implementation
55 protected:
56 virtual ~CResizableMDIFrame();
58 BOOL EnableSaveRestore(LPCTSTR pszSection, BOOL bRectOnly = FALSE, BOOL bHorzResize = TRUE, BOOL bVertResize = TRUE);
60 virtual CWnd* GetResizableWnd() const
62 // make the layout know its parent window
63 return CWnd::FromHandle(m_hWnd);
66 private:
67 // flags
68 BOOL m_bEnableSaveRestore;
69 BOOL m_bRectOnly;
71 // internal status
72 CString m_sSection; // section name (identifies a parent window)
74 protected:
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);
81 //}}AFX_MSG
82 DECLARE_MESSAGE_MAP()
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_)