OSDN Git Service

Fix assertion failure when log dialog closed.
[tortoisegit/TortoiseGitJp.git] / ext / ResizableLib / ResizableSheetState.h
1 /////////////////////////////////////////////////////////////////////////////\r
2 //\r
3 // This file is part of ResizableLib\r
4 // http://sourceforge.net/projects/resizablelib\r
5 //\r
6 // Copyright (C) 2000-2004 by Paolo Messina\r
7 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com\r
8 //\r
9 // The contents of this file are subject to the Artistic License (the "License").\r
10 // You may not use this file except in compliance with the License. \r
11 // You may obtain a copy of the License at:\r
12 // http://www.opensource.org/licenses/artistic-license.html\r
13 //\r
14 // If you find this code useful, credits would be nice!\r
15 //\r
16 /////////////////////////////////////////////////////////////////////////////\r
17 \r
18 /*!\r
19  *  @file\r
20  *  @brief Interface for the CResizableSheetState class.\r
21  */\r
22 \r
23 #if !defined(AFX_RESIZABLESHEETSTATE_H__INCLUDED_)\r
24 #define AFX_RESIZABLESHEETSTATE_H__INCLUDED_\r
25 \r
26 #if _MSC_VER > 1000\r
27 #pragma once\r
28 #endif // _MSC_VER > 1000\r
29 \r
30 #include "ResizableWndState.h"\r
31 \r
32 /*! @addtogroup CoreComponents\r
33  *  @{\r
34  */\r
35 \r
36 //! @brief Persists active page in property sheets or wizard dialogs\r
37 /*!\r
38  *  Derive from this class when you want to persist the active page\r
39  *  in property sheets or wizard dialogs.\r
40  *  This class is used in the provided resizable counterparts of\r
41  *  the standard MFC property sheet classes.\r
42  */\r
43 class CResizableSheetState : public CResizableWndState  \r
44 {\r
45 protected:\r
46 \r
47         //! @brief Load and set the active property page \r
48         BOOL LoadPage(LPCTSTR pszName);\r
49 \r
50         //! @brief Save the current active property page \r
51         BOOL SavePage(LPCTSTR pszName);\r
52 \r
53         //! @brief Override to provide the parent window\r
54         virtual CWnd* GetResizableWnd() const = 0;\r
55 \r
56 public:\r
57         CResizableSheetState();\r
58         virtual ~CResizableSheetState();\r
59 };\r
60 \r
61 // @}\r
62 #endif // !defined(AFX_RESIZABLESHEETSTATE_H__INCLUDED_)\r