[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
This commit is contained in:
Giannis Adamopoulos 2015-03-15 13:39:15 +00:00
parent 387fa04f75
commit c179b87a32

View 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,