Commit 8777c62d authored by Alexandre Julliard's avatar Alexandre Julliard

In DIALOG_FixChildrenOnChangeFocus make sure the button is a push

button before making it the default.
parent b580b8cf
...@@ -1040,7 +1040,7 @@ static void DIALOG_FixChildrenOnChangeFocus (HWND hwndDlg, HWND hwndNext) ...@@ -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); SendMessageW (hwndNext, BM_SETSTYLE, BS_DEFPUSHBUTTON, TRUE);
/* I wonder why it doesn't send a DM_SETDEFID */ /* I wonder why it doesn't send a DM_SETDEFID */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment