From: Giannis Adamopoulos Date: Wed, 22 Feb 2017 10:46:26 +0000 (+0000) Subject: [COMCTL32]: Fix a few button tests. X-Git-Tag: ReactOS-0.4.4-CLT2017~210 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1d7676d1e00f99b73c5352a086b73580fbbdf236 [COMCTL32]: Fix a few button tests. svn path=/trunk/; revision=73880 --- diff --git a/reactos/dll/win32/comctl32/button.c b/reactos/dll/win32/comctl32/button.c index f671a1a6b50..325a72abb58 100644 --- a/reactos/dll/win32/comctl32/button.c +++ b/reactos/dll/win32/comctl32/button.c @@ -626,7 +626,7 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg, case WM_SETFOCUS: TRACE("WM_SETFOCUS %p\n",hWnd); set_button_state( hWnd, get_button_state(hWnd) | BST_FOCUS ); - paint_button( hWnd, btn_type, ODA_FOCUS ); + InvalidateRect(hWnd, NULL, FALSE); if (style & BS_NOTIFY) BUTTON_NOTIFY_PARENT(hWnd, BN_SETFOCUS); break; @@ -721,7 +721,7 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg, if ((state & 3) != wParam) { set_button_state( hWnd, (state & ~3) | wParam ); - paint_button( hWnd, btn_type, ODA_SELECT ); + InvalidateRect(hWnd, NULL, FALSE); } if ((btn_type == BS_AUTORADIOBUTTON) && (wParam == BST_CHECKED) && (style & WS_CHILD)) BUTTON_CheckAutoRadioButton( hWnd ); @@ -737,7 +737,7 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg, else set_button_state( hWnd, state & ~BST_PUSHED ); - paint_button( hWnd, btn_type, ODA_SELECT ); + InvalidateRect(hWnd, NULL, FALSE); break; #ifdef __REACTOS__