]>
cygwin.com Git - cygwin-apps/setup.git/blob - proppage.h
2 * Copyright (c) 2001, 2002, 2003 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
);
51 virtual BOOL CALLBACK
DialogProc (UINT message
, WPARAM wParam
,
56 virtual ~ PropertyPage ();
58 PROPSHEETPAGE
*GetPROPSHEETPAGEPtr ()
63 // FIXME: These should be private and friended to PropSheet.
64 void YouAreBeingAddedToASheet (PropSheet
* ps
)
84 virtual bool Create (int TemplateID
);
85 virtual bool Create (DLGPROC dlgproc
, int TemplateID
);
86 virtual bool Create (DLGPROC dlgproc
,
87 BOOL (*cmdproc
) (HWND h
, int id
, HWND hwndctl
,
88 UINT code
), int TemplateID
);
90 virtual void OnInit ()
93 virtual void OnActivate ()
96 virtual bool wantsActivation ()
100 virtual void OnDeactivate ()
104 // Overload these to perform special processing when the user hits
105 // "Next" or "Back". Return:
106 // 0 == Go to next/previous page in sequence.
107 // -1 == Prevent wizard from changing page.
108 // Resource ID == go to a specific page specified by the resource ID.
109 virtual long OnNext ()
113 virtual long OnBack ()
118 virtual bool OnFinish ()
122 virtual long OnUnattended ()
127 PropSheet
*GetOwner () const
133 #endif /* SETUP_PROPPAGE_H */
This page took 0.041097 seconds and 6 git commands to generate.