OSDN Git Service

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