[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
This commit is contained in:
Giannis Adamopoulos 2017-03-04 22:33:21 +00:00
parent 80c4567edf
commit 6e64a5904a

View file

@ -1087,6 +1087,10 @@ ThemeWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC DefWndPr
// //
case WM_NCUAHDRAWFRAME: case WM_NCUAHDRAWFRAME:
case WM_NCACTIVATE: case WM_NCACTIVATE:
if ((GetWindowLongW(hWnd, GWL_STYLE) & WS_CAPTION) != WS_CAPTION)
return TRUE;
ThemeHandleNCPaint(hWnd, (HRGN)1); ThemeHandleNCPaint(hWnd, (HRGN)1);
return TRUE; return TRUE;
case WM_NCMOUSEMOVE: case WM_NCMOUSEMOVE: