[UXTHEME]: Handle WM_NCACTIVATE only when the window has a themed caption (it's not...
[reactos.git] / 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:
+
+        if ((GetWindowLongW(hWnd, GWL_STYLE) & WS_CAPTION) != WS_CAPTION)
+            return TRUE;
+
         ThemeHandleNCPaint(hWnd, (HRGN)1);
         return TRUE;
     case WM_NCMOUSEMOVE: