mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[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:
parent
80c4567edf
commit
6e64a5904a
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue