return;
if (!htheme)
- htheme = pwndData->hthemeWindow;
+ {
+ htheme = GetNCCaptionTheme(hWnd, style);
+ if (!htheme)
+ return;
+ }
if(!GetWindowInfo(hWnd, &wi))
return;
case WM_SIZE:
case WM_WINDOWPOSCHANGED:
{
- ThemeCalculateCaptionButtonsPos(hWnd, NULL);
+ if(IsAppThemed() && (GetThemeAppProperties() & STAP_ALLOW_NONCLIENT))
+ ThemeCalculateCaptionButtonsPos(hWnd, NULL);
break;
}
case WM_THEMECHANGED:
pwndData->hthemeScrollbar = NULL;
}
- ThemeCalculateCaptionButtonsPos(hWnd, NULL);
+ if(IsAppThemed() && (GetThemeAppProperties() & STAP_ALLOW_NONCLIENT))
+ ThemeCalculateCaptionButtonsPos(hWnd, NULL);
+
+ pwndData->DirtyThemeRegion = TRUE;
+ break;
}
case WM_NCCREATE:
{