In DIALOG_FixChildrenOnChangeFocus make sure the button is a push

button before making it the default.
This commit is contained in:
Alexandre Julliard 2005-10-08 10:36:10 +00:00
parent b580b8cf9c
commit 8777c62d77
1 changed files with 1 additions and 1 deletions

View File

@ -1040,7 +1040,7 @@ static void DIALOG_FixChildrenOnChangeFocus (HWND hwndDlg, HWND hwndNext)
}
}
}
else
else if ((dlgcode_next & DLGC_BUTTON) && (dlgcode_next & DLGC_UNDEFPUSHBUTTON))
{
SendMessageW (hwndNext, BM_SETSTYLE, BS_DEFPUSHBUTTON, TRUE);
/* I wonder why it doesn't send a DM_SETDEFID */