Author: gadamopoulos
Date: Sat Mar 4 22:33:21 2017
New Revision: 74065
URL:
http://svn.reactos.org/svn/reactos?rev=74065&view=rev
Log:
[UXTHEME]: Handle WM_NCACTIVATE only when the window has a themed caption (it's not
like windows with classic borders and no caption need to be redrawn to reflect that they
get or lose the active state). Fixes the classic border drawn on deactivation in the
taskbar. Found by Sylvain Deverre. CORE-12887
Modified:
trunk/reactos/dll/win32/uxtheme/nonclient.c
Modified: trunk/reactos/dll/win32/uxtheme/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/nonclien…
==============================================================================
--- trunk/reactos/dll/win32/uxtheme/nonclient.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/uxtheme/nonclient.c [iso-8859-1] Sat Mar 4 22:33:21 2017
@@ -1087,6 +1087,10 @@
//
case WM_NCUAHDRAWFRAME:
case WM_NCACTIVATE:
+
+ if ((GetWindowLongW(hWnd, GWL_STYLE) & WS_CAPTION) != WS_CAPTION)
+ return TRUE;
+
ThemeHandleNCPaint(hWnd, (HRGN)1);
return TRUE;
case WM_NCMOUSEMOVE: