From c179b87a32491575381e992c608f3ba8e30507e3 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sun, 15 Mar 2015 13:39:15 +0000 Subject: [PATCH] [UXTHEME] - 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reactos/dll/win32/uxtheme/themehooks.c b/reactos/dll/win32/uxtheme/themehooks.c index 20b541dbf8f..f5101e03bf8 100644 --- a/reactos/dll/win32/uxtheme/themehooks.c +++ b/reactos/dll/win32/uxtheme/themehooks.c @@ -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,