OSDN Git Service

Align key "puttykeyfile" with gitextension
[tortoisegit/TortoiseGitJp.git] / ext / ResizableLib / ResizablePage.h
1 #if !defined(AFX_RESIZABLEPAGE_H__INCLUDED_)\r
2 #define AFX_RESIZABLEPAGE_H__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 \r
8 // ResizablePage.h : header file\r
9 //\r
10 /////////////////////////////////////////////////////////////////////////////\r
11 //\r
12 // This file is part of ResizableLib\r
13 // http://sourceforge.net/projects/resizablelib\r
14 //\r
15 // Copyright (C) 2000-2004 by Paolo Messina\r
16 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com\r
17 //\r
18 // The contents of this file are subject to the Artistic License (the "License").\r
19 // You may not use this file except in compliance with the License. \r
20 // You may obtain a copy of the License at:\r
21 // http://www.opensource.org/licenses/artistic-license.html\r
22 //\r
23 // If you find this code useful, credits would be nice!\r
24 //\r
25 /////////////////////////////////////////////////////////////////////////////\r
26 \r
27 #include "ResizableLayout.h"\r
28 #include "ResizableMinMax.h"\r
29 \r
30 /////////////////////////////////////////////////////////////////////////////\r
31 // CResizablePage window\r
32 \r
33 class CResizablePage : public CPropertyPage, public CResizableLayout,\r
34                                                 public CResizableMinMax\r
35 {\r
36         DECLARE_DYNCREATE(CResizablePage)\r
37 \r
38 // Construction\r
39 public:\r
40         CResizablePage();\r
41         CResizablePage(UINT nIDTemplate, UINT nIDCaption = 0);\r
42         CResizablePage(LPCTSTR lpszTemplateName, UINT nIDCaption = 0);\r
43 \r
44 // Attributes\r
45 public:\r
46 \r
47 // Operations\r
48 public:\r
49 \r
50 // Overrides\r
51         // ClassWizard generated virtual function overrides\r
52         //{{AFX_VIRTUAL(CResizablePage)\r
53         protected:\r
54         virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);\r
55         //}}AFX_VIRTUAL\r
56 \r
57 // Implementation\r
58 public:\r
59         virtual ~CResizablePage();\r
60 \r
61 // callable from derived classes\r
62 protected:\r
63 \r
64         virtual CWnd* GetResizableWnd() const\r
65         {\r
66                 // make the layout know its parent window\r
67                 return CWnd::FromHandle(m_hWnd);\r
68         };\r
69 \r
70 // Generated message map functions\r
71 protected:\r
72         //{{AFX_MSG(CResizablePage)\r
73         afx_msg void OnSize(UINT nType, int cx, int cy);\r
74         afx_msg BOOL OnEraseBkgnd(CDC* pDC);\r
75         afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);\r
76         virtual BOOL OnInitDialog();\r
77         afx_msg void OnDestroy();\r
78         //}}AFX_MSG\r
79         DECLARE_MESSAGE_MAP()\r
80 };\r
81 \r
82 /////////////////////////////////////////////////////////////////////////////\r
83 \r
84 //{{AFX_INSERT_LOCATION}}\r
85 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
86 \r
87 #endif // !defined(AFX_RESIZABLEPAGE_H__INCLUDED_)\r