From 6e64a5904a54fe0d19cfa081c079102fc76de41b Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sat, 4 Mar 2017 22:33:21 +0000 Subject: [PATCH 1/1] [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 svn path=/trunk/; revision=74065 --- reactos/dll/win32/uxtheme/nonclient.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/dll/win32/uxtheme/nonclient.c b/reactos/dll/win32/uxtheme/nonclient.c index 3c3da3ead77..7343dc52090 100644 --- a/reactos/dll/win32/uxtheme/nonclient.c +++ b/reactos/dll/win32/uxtheme/nonclient.c @@ -1087,6 +1087,10 @@ ThemeWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC DefWndPr // 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: -- 2.17.1