]>
cygwin.com Git - cygwin-apps/setup.git/blob - proppage.h
2 * Copyright (c) 2001, Gary R. Van Sickle.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
16 #ifndef SETUP_PROPPAGE_H
17 #define SETUP_PROPPAGE_H
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 ()
110 virtual long OnUnattended ()
115 PropSheet
*GetOwner () const
121 #endif /* SETUP_PROPPAGE_H */
This page took 0.04163 seconds and 6 git commands to generate.