[UXTHEME]: Handle WM_NCACTIVATE only when the window has a themed caption (it's not...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 4 Mar 2017 22:33:21 +0000 (22:33 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 4 Mar 2017 22:33:21 +0000 (22:33 +0000)
svn path=/trunk/; revision=74065

reactos/dll/win32/uxtheme/nonclient.c

index 3c3da3e..7343dc5 100644 (file)
@@ -1087,6 +1087,10 @@ ThemeWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, WNDPROC DefWndPr
     //
     case WM_NCUAHDRAWFRAME:
     case WM_NCACTIVATE:
     //
     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:
         ThemeHandleNCPaint(hWnd, (HRGN)1);
         return TRUE;
     case WM_NCMOUSEMOVE: