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.
This commit is contained in:
parent
fcce047f61
commit
2682ff43d0
|
@ -2438,14 +2438,6 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
|
|||
|
||||
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 hwndDlg, DWORD dwFlags)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue