[UXTHEME]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 15 Mar 2015 13:39:15 +0000 (13:39 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 15 Mar 2015 13:39:15 +0000 (13:39 +0000)
- Call DrawCaption in user32 when we get WM_NCUAHDRAWCAPTION and there is no active theme.
- Should finally fix CORE-9016.

svn path=/trunk/; revision=66723

reactos/dll/win32/uxtheme/themehooks.c

index 20b541d..f5101e0 100644 (file)
@@ -186,6 +186,12 @@ ThemeDefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 {      
     if(!IsAppThemed())
     {
+        if (Msg == WM_NCUAHDRAWCAPTION)
+        {
+            user32ApiHook.DrawCaption(hWnd, NULL, NULL, 0);
+            return 0;
+        }
+
         return user32ApiHook.DefWindowProcW(hWnd, 
                                             Msg, 
                                             wParam, 
@@ -204,6 +210,12 @@ ThemeDefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 {
     if(!IsAppThemed())
     {
+        if (Msg == WM_NCUAHDRAWCAPTION)
+        {
+            user32ApiHook.DrawCaption(hWnd, NULL, NULL, 0);
+            return 0;
+        }
+
         return user32ApiHook.DefWindowProcA(hWnd, 
                                             Msg, 
                                             wParam,