-#ifndef CINSTALL_PROPPAGE_H\r
-#define CINSTALL_PROPPAGE_H\r
-\r
-/*\r
- * Copyright (c) 2001, Gary R. Van Sickle.\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * A copy of the GNU General Public License can be found at\r
- * http://www.gnu.org/\r
- *\r
- * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>\r
- *\r
- */\r
-\r
-// This is the header for the PropertyPage class. It works closely with the\r
-// PropSheet class to implement a single page of the property sheet.\r
-\r
-\r
-#include <windows.h>\r
-#include <prsht.h>\r
-\r
-#include "window.h"\r
-\r
-class PropSheet;\r
-\r
-class PropertyPage:public Window\r
-{\r
- static bool DoOnceForSheet;\r
- PROPSHEETPAGE psp;\r
- DLGPROC proc;\r
- BOOL (*cmdproc) (HWND h, int id, HWND hwndctl, UINT code);\r
-\r
- // The sheet that owns this page.\r
- PropSheet *OurSheet;\r
-\r
- // For setting the back/finish buttons properly.\r
- bool IsFirst, IsLast;\r
-\r
- static BOOL CALLBACK FirstDialogProcReflector (HWND hwnd, UINT message,\r
- WPARAM wParam,\r
- LPARAM lParam);\r
- static BOOL CALLBACK DialogProcReflector (HWND hwnd, UINT message,\r
- WPARAM wParam, LPARAM lParam);\r
-\r
-protected:\r
- virtual BOOL CALLBACK DialogProc (UINT message, WPARAM wParam,\r
- LPARAM lParam);\r
-\r
-public:\r
- PropertyPage ();\r
- virtual ~ PropertyPage ();\r
-\r
- PROPSHEETPAGE *GetPROPSHEETPAGEPtr ()\r
- {\r
- return &psp;\r
- };\r
-\r
- // FIXME: These should be private and friended to PropSheet.\r
- void YouAreBeingAddedToASheet (PropSheet * ps)\r
- {\r
- OurSheet = ps;\r
- };\r
- void YouAreFirst ()\r
- {\r
- IsFirst = true;\r
- IsLast = false;\r
- };\r
- void YouAreLast ()\r
- {\r
- IsFirst = false;\r
- IsLast = true;\r
- };\r
- void YouAreMiddle ()\r
- {\r
- IsFirst = false;\r
- IsLast = false;\r
- };\r
-\r
- virtual bool Create (int TemplateID);\r
- virtual bool Create (DLGPROC dlgproc, int TemplateID);\r
- virtual bool Create (DLGPROC dlgproc,\r
- BOOL (*cmdproc) (HWND h, int id, HWND hwndctl,\r
- UINT code), int TemplateID);\r
-\r
- virtual void OnInit ()\r
- {\r
- };\r
- virtual void OnActivate ()\r
- {\r
- };\r
- virtual void OnDeactivate ()\r
- {\r
- };\r
- virtual long OnNext ()\r
- {\r
- return 0;\r
- };\r
- virtual long OnBack ()\r
- {\r
- return 0;\r
- };\r
- virtual bool OnFinish ()\r
- {\r
- return true;\r
- };\r
-\r
- PropSheet *GetOwner () const\r
- {\r
- return OurSheet;\r
- };\r
-};\r
-\r
-#endif // CINSTALL_PROPPAGE_H\r
+#ifndef CINSTALL_PROPPAGE_H
+#define CINSTALL_PROPPAGE_H
+
+/*
+ * Copyright (c) 2001, Gary R. Van Sickle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * A copy of the GNU General Public License can be found at
+ * http://www.gnu.org/
+ *
+ * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
+ *
+ */
+
+// This is the header for the PropertyPage class. It works closely with the
+// PropSheet class to implement a single page of the property sheet.
+
+
+#include "win32.h"
+#include <prsht.h>
+
+#include "window.h"
+
+class PropSheet;
+
+class PropertyPage:public Window
+{
+ static bool DoOnceForSheet;
+ PROPSHEETPAGE psp;
+ DLGPROC proc;
+ BOOL (*cmdproc) (HWND h, int id, HWND hwndctl, UINT code);
+
+ // The sheet that owns this page.
+ PropSheet *OurSheet;
+
+ // For setting the back/finish buttons properly.
+ bool IsFirst, IsLast;
+
+ static BOOL CALLBACK FirstDialogProcReflector (HWND hwnd, UINT message,
+ WPARAM wParam,
+ LPARAM lParam);
+ static BOOL CALLBACK DialogProcReflector (HWND hwnd, UINT message,
+ WPARAM wParam, LPARAM lParam);
+
+protected:
+ virtual BOOL CALLBACK DialogProc (UINT message, WPARAM wParam,
+ LPARAM lParam);
+
+public:
+ PropertyPage ();
+ virtual ~ PropertyPage ();
+
+ PROPSHEETPAGE *GetPROPSHEETPAGEPtr ()
+ {
+ return &psp;
+ };
+
+ // FIXME: These should be private and friended to PropSheet.
+ void YouAreBeingAddedToASheet (PropSheet * ps)
+ {
+ OurSheet = ps;
+ };
+ void YouAreFirst ()
+ {
+ IsFirst = true;
+ IsLast = false;
+ };
+ void YouAreLast ()
+ {
+ IsFirst = false;
+ IsLast = true;
+ };
+ void YouAreMiddle ()
+ {
+ IsFirst = false;
+ IsLast = false;
+ };
+
+ virtual bool Create (int TemplateID);
+ virtual bool Create (DLGPROC dlgproc, int TemplateID);
+ virtual bool Create (DLGPROC dlgproc,
+ BOOL (*cmdproc) (HWND h, int id, HWND hwndctl,
+ UINT code), int TemplateID);
+
+ virtual void OnInit ()
+ {
+ };
+ virtual void OnActivate ()
+ {
+ };
+ virtual void OnDeactivate ()
+ {
+ };
+ virtual long OnNext ()
+ {
+ return 0;
+ };
+ virtual long OnBack ()
+ {
+ return 0;
+ };
+ virtual bool OnFinish ()
+ {
+ return true;
+ };
+ virtual long OnUnattended ()
+ {
+ return -2;
+ };
+
+ PropSheet *GetOwner () const
+ {
+ return OurSheet;
+ };
+};
+
+#endif // CINSTALL_PROPPAGE_H