Robert Shearman : comctl32: A PSM_SETWIZBUTTONS message specifying PSWIZB_FINISH or

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 22 05:19:10 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 2682ff43d0fc61a8f178ad4c9841f0dd739fa42a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=2682ff43d0fc61a8f178ad4c9841f0dd739fa42a

Author: Robert Shearman <rob at codeweavers.com>
Date:   Sat May 20 15:31:01 2006 +0100

comctl32: A PSM_SETWIZBUTTONS message specifying PSWIZB_FINISH or
PSWIZB_DISABLEDFINISH, followed by another one without those flags
should show the next button again and hide the finish button.

---

 dlls/comctl32/propsheet.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index c1654dd..a253099 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -2438,14 +2438,6 @@ static void PROPSHEET_SetWizButtons(HWND
 
   if (dwFlags & PSWIZB_NEXT)
   {
-    if (!psInfo->hasFinish)
-    {
-      /* Hide the Finish button */
-      ShowWindow(hwndFinish, SW_HIDE);
-    }
-
-    /* Show and enable the Next button */
-    ShowWindow(hwndNext, SW_SHOW);
     EnableWindow(hwndNext, TRUE);
 
     /* Set the Next button as the default pushbutton  */
@@ -2470,6 +2462,13 @@ static void PROPSHEET_SetWizButtons(HWND
         SendMessageW(hwndDlg, DM_SETDEFID, IDC_FINISH_BUTTON, 0);
       }
     }
+    else
+    {
+      /* Hide the Finish button */
+      ShowWindow(hwndFinish, SW_HIDE);
+      /* Show the Next button */
+      ShowWindow(hwndNext, SW_SHOW);
+    }
   }
   else if (!(dwFlags & PSWIZB_DISABLEDFINISH))
     EnableWindow(hwndFinish, TRUE);




More information about the wine-cvs mailing list