In DIALOG_FixChildrenOnChangeFocus make sure the button is a push
button before making it the default.
This commit is contained in:
parent
b580b8cf9c
commit
8777c62d77
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue