]>
cygwin.com Git - cygwin-apps/setup.git/blob - propsheet.h
1 #ifndef CINSTALL_PROPSHEET_H
2 #define CINSTALL_PROPSHEET_H
5 * Copyright (c) 2001, Gary R. Van Sickle.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * A copy of the GNU General Public License can be found at
15 * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
19 // This is the header for the PropSheet class. This class encapsulates
20 // a Windows property sheet / wizard and interfaces with the PropertyPage class.
21 // It's named PropSheet instead of PropertySheet because the latter conflicts with
22 // the Windows function of the same name.
32 class PropSheet
:public Window
34 PropertyPage
*PropertyPages
[MAXPROPPAGES
];
37 HPROPSHEETPAGE
*PageHandles
;
38 HPROPSHEETPAGE
*CreatePages ();
42 virtual ~ PropSheet ();
44 // Should be private and friended to PropertyPage
45 void SetHWNDFromPage (HWND h
);
47 virtual bool Create (const Window
* Parent
= NULL
,
49 WS_OVERLAPPEDWINDOW
| WS_VISIBLE
| WS_CLIPCHILDREN
);
51 void AddPage (PropertyPage
* p
);
53 bool SetActivePage (int i
);
54 bool SetActivePageByID (int resource_id
);
55 void SetButtons (DWORD flags
);
56 void PressButton (int button
);
59 #endif // CINSTALL_PROPSHEET_H
This page took 0.036882 seconds and 5 git commands to generate.