Author: gadamopoulos
Date: Wed Feb 22 10:46:26 2017
New Revision: 73880
URL:
http://svn.reactos.org/svn/reactos?rev=73880&view=rev
Log:
[COMCTL32]: Fix a few button tests.
Modified:
trunk/reactos/dll/win32/comctl32/button.c
Modified: trunk/reactos/dll/win32/comctl32/button.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comctl32/button.…
==============================================================================
--- trunk/reactos/dll/win32/comctl32/button.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/comctl32/button.c [iso-8859-1] Wed Feb 22 10:46:26 2017
@@ -626,7 +626,7 @@
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 @@
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 @@
else
set_button_state( hWnd, state & ~BST_PUSHED );
- paint_button( hWnd, btn_type, ODA_SELECT );
+ InvalidateRect(hWnd, NULL, FALSE);
break;
#ifdef __REACTOS__