LCL-Win32: Take care of standard style painting when reducing flicker in TListbox. Issue #28146, patch from wp.

git-svn-id: trunk@49561 -
This commit is contained in:
juha 2015-07-22 08:27:15 +00:00
parent d5a1ca25e1
commit c6a1a07dac

View File

@ -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