Author: gadamopoulos
Date: Sun Mar  5 09:35:12 2017
New Revision: 74074

URL: http://svn.reactos.org/svn/reactos?rev=74074&view=rev
Log:
[COMCTL32] - A button with the style BS_DEFPUSHBUTTON is drawn as defaulted 
instead of normal.

Modified:
    trunk/reactos/dll/win32/comctl32/theme_button.c

Modified: trunk/reactos/dll/win32/comctl32/theme_button.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comctl32/theme_button.c?rev=74074&r1=74073&r2=74074&view=diff
==============================================================================
--- trunk/reactos/dll/win32/comctl32/theme_button.c     [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/comctl32/theme_button.c     [iso-8859-1] Sun Mar  5 
09:35:12 2017
@@ -361,6 +361,11 @@
     }
     else drawState = STATE_DISABLED;
 
+    if (drawState == STATE_NORMAL && (dwStyle & BUTTON_TYPE) == 
BS_DEFPUSHBUTTON)
+    {
+        drawState = STATE_DEFAULTED;
+    }
+
     paint(theme, hwnd, hParamDC, drawState, dtFlags, state & BST_FOCUS, 
prfFlag);
     return TRUE;
 }


Reply via email to