diff --git a/lcl/interfaces/win32/win32wsstdctrls.pp b/lcl/interfaces/win32/win32wsstdctrls.pp index 05a245a698..a7a0325e43 100644 --- a/lcl/interfaces/win32/win32wsstdctrls.pp +++ b/lcl/interfaces/win32/win32wsstdctrls.pp @@ -613,7 +613,8 @@ begin Exit(DeliverMessage(WindowInfo^.WinControl, LMessage)); end; WM_ERASEBKGND: - if WindowsVersion <= wvXP then // Standardbehavior for XP + if (WindowsVersion <= wvXP) or not ThemeServices.ThemesEnabled then + // Standardbehavior for XP, or no themes Result := CallDefaultWindowProc(Window, Msg, WParam, LParam) else begin