lcl: prepare TreeView canvas before theme drawing if theme has transparent parts for this detail and RowSelect = true (issue #0018244)

git-svn-id: trunk@29896 -
This commit is contained in:
paul 2011-03-18 07:31:55 +00:00
parent 40bc5733f4
commit 9d6104fc81

View File

@ -4558,6 +4558,11 @@ var
Details := ThemeServices.GetElementDetails(ttItemSelected)
else
Details := ThemeServices.GetElementDetails(ttItemSelectedNotFocus);
if ThemeServices.HasTransparentParts(Details) then
begin
Canvas.Brush.Color := BackgroundColor;
Canvas.FillRect(ARect);
end;
ThemeServices.DrawElement(Canvas.Handle, Details, ARect, nil);
Exit;
end