OSDN Git Service

Add Show Whole Project Button at commitDialog
[tortoisegit/TortoiseGitJp.git] / ext / ResizableLib / ResizableFrame.h
1 #if !defined(AFX_RESIZABLEFRAME_H__INCLUDED_)\r
2 #define AFX_RESIZABLEFRAME_H__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 // ResizableFrame.h : header file\r
8 //\r
9 /////////////////////////////////////////////////////////////////////////////\r
10 //\r
11 // This file is part of ResizableLib\r
12 // http://sourceforge.net/projects/resizablelib\r
13 //\r
14 // Copyright (C) 2000-2004 by Paolo Messina\r
15 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com\r
16 //\r
17 // The contents of this file are subject to the Artistic License (the "License").\r
18 // You may not use this file except in compliance with the License. \r
19 // You may obtain a copy of the License at:\r
20 // http://www.opensource.org/licenses/artistic-license.html\r
21 //\r
22 // If you find this code useful, credits would be nice!\r
23 //\r
24 /////////////////////////////////////////////////////////////////////////////\r
25 \r
26 #include "ResizableMinMax.h"\r
27 #include "ResizableWndState.h"\r
28 #include "ResizableLayout.h"\r
29 \r
30 /////////////////////////////////////////////////////////////////////////////\r
31 // CResizableFrame frame\r
32 \r
33 class CResizableFrame : public CFrameWnd, public CResizableMinMax,\r
34                                                 public CResizableWndState, public CResizableLayout\r
35 {\r
36         DECLARE_DYNCREATE(CResizableFrame)\r
37 protected:\r
38         CResizableFrame();              // protected constructor used by dynamic creation\r
39 \r
40 // Attributes\r
41 protected:\r
42 \r
43 // Operations\r
44 public:\r
45 \r
46 // Overrides\r
47         // ClassWizard generated virtual function overrides\r
48         //{{AFX_VIRTUAL(CResizableFrame)\r
49         protected:\r
50         virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);\r
51         //}}AFX_VIRTUAL\r
52 \r
53 // Implementation\r
54 protected:\r
55         virtual ~CResizableFrame();\r
56 \r
57         BOOL EnableSaveRestore(LPCTSTR pszSection, BOOL bRectOnly = FALSE);\r
58 \r
59         virtual CWnd* GetResizableWnd() const\r
60         {\r
61                 // make the layout know its parent window\r
62                 return CWnd::FromHandle(m_hWnd);\r
63         };\r
64 \r
65 private:\r
66         // flags\r
67         BOOL m_bEnableSaveRestore;\r
68         BOOL m_bRectOnly;\r
69 \r
70         // internal status\r
71         CString m_sSection;                     // section name (identifies a parent window)\r
72 \r
73 protected:\r
74         // Generated message map functions\r
75         //{{AFX_MSG(CResizableFrame)\r
76         afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);\r
77         afx_msg void OnDestroy();\r
78         afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpCreateStruct);\r
79         afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);\r
80         //}}AFX_MSG\r
81         DECLARE_MESSAGE_MAP()\r
82 };\r
83 \r
84 /////////////////////////////////////////////////////////////////////////////\r
85 \r
86 //{{AFX_INSERT_LOCATION}}\r
87 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
88 \r
89 #endif // !defined(AFX_RESIZABLEFRAME_H__INCLUDED_)\r