]>
cygwin.com Git - cygwin-apps/setup.git/blob - proppage.h
1 #ifndef CINSTALL_PROPPAGE_H
2 #define CINSTALL_PROPPAGE_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 PropertyPage class. It works closely with the
20 // PropSheet class to implement a single page of the property sheet.
30 class PropertyPage
:public Window
32 static bool DoOnceForSheet
;
35 BOOL (*cmdproc
) (HWND h
, int id
, HWND hwndctl
, UINT code
);
37 // The sheet that owns this page.
40 // For setting the back/finish buttons properly.
43 static BOOL CALLBACK
FirstDialogProcReflector (HWND hwnd
, UINT message
,
46 static BOOL CALLBACK
DialogProcReflector (HWND hwnd
, UINT message
,
47 WPARAM wParam
, LPARAM lParam
);
50 virtual BOOL CALLBACK
DialogProc (UINT message
, WPARAM wParam
,
55 virtual ~ PropertyPage ();
57 PROPSHEETPAGE
*GetPROPSHEETPAGEPtr ()
62 // FIXME: These should be private and friended to PropSheet.
63 void YouAreBeingAddedToASheet (PropSheet
* ps
)
83 virtual bool Create (int TemplateID
);
84 virtual bool Create (DLGPROC dlgproc
, int TemplateID
);
85 virtual bool Create (DLGPROC dlgproc
,
86 BOOL (*cmdproc
) (HWND h
, int id
, HWND hwndctl
,
87 UINT code
), int TemplateID
);
89 virtual void OnInit ()
92 virtual void OnActivate ()
95 virtual void OnDeactivate ()
98 virtual long OnNext ()
102 virtual long OnBack ()
106 virtual bool OnFinish ()
111 PropSheet
*GetOwner () const
117 #endif // CINSTALL_PROPPAGE_H
This page took 0.039834 seconds and 5 git commands to generate.