disable the Back button on Finish page
authorChristoph von Wittich <christoph_vw@reactos.org>
Fri, 25 Jan 2008 15:00:29 +0000 (15:00 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Fri, 25 Jan 2008 15:00:29 +0000 (15:00 +0000)
svn path=/trunk/; revision=31994

reactos/dll/win32/syssetup/wizard.c

index 58bd218..9a01e40 100644 (file)
@@ -1985,7 +1985,7 @@ FinishDlgProc(HWND hwndDlg,
             {
               case PSN_SETACTIVE:
                 /* Enable the correct buttons on for the active page */
-                PropSheet_SetWizButtons(GetParent(hwndDlg), PSWIZB_BACK | PSWIZB_FINISH);
+                PropSheet_SetWizButtons(GetParent(hwndDlg), PSWIZB_FINISH);
 
                 SendDlgItemMessage(hwndDlg, IDC_RESTART_PROGRESS, PBM_SETRANGE, 0,
                                    MAKELPARAM(0, 300));
@@ -1993,15 +1993,6 @@ FinishDlgProc(HWND hwndDlg,
                 SetTimer(hwndDlg, 1, 50, NULL);
                 break;
 
-              case PSN_WIZBACK:
-                /* Handle a Back button click, if necessary */
-                KillTimer(hwndDlg, 1);
-
-                /* Skip the progress page */
-                SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_DATETIMEPAGE);
-                SetupData.UnattendSetup = FALSE;
-                return TRUE;
-
               case PSN_WIZFINISH:
                 /* Handle a Finish button click, if necessary */
                 break;