From: Rémi Bernon rbernon@codeweavers.com
--- dlls/user32/button.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/button.c b/dlls/user32/button.c index 75885be0f17..0cb6fc40c3d 100644 --- a/dlls/user32/button.c +++ b/dlls/user32/button.c @@ -452,8 +452,9 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, state = get_button_state( hWnd ); if ((btn_type == BS_RADIOBUTTON) || (btn_type == BS_AUTORADIOBUTTON)) { - if (wParam) WIN_SetStyle( hWnd, WS_TABSTOP, 0 ); - else WIN_SetStyle( hWnd, 0, WS_TABSTOP ); + UINT style = GetWindowLongW( hWnd, GWL_STYLE ); + if (wParam) SetWindowLongW( hWnd, GWL_STYLE, style | WS_TABSTOP ); + else SetWindowLongW( hWnd, GWL_STYLE, style & ~WS_TABSTOP ); } if ((state & 3) != wParam) {