win32: use default thememanager drawing for treeitem text if os < vista

git-svn-id: trunk@24884 -
This commit is contained in:
paul 2010-04-24 16:35:34 +00:00
parent 6ff1d590b7
commit ca09af423f

View File

@ -475,6 +475,11 @@ procedure TWin32ThemeServices.DrawText(ACanvas: TPersistent;
Details: TThemedElementDetails; const S: String; R: TRect; Flags,
Flags2: Cardinal);
begin
if (Details.Element = teTreeview) and (Details.Part = TVP_TREEITEM) and (WindowsVersion < wvVista) then
begin
inherited;
Exit;
end;
if ThemesEnabled then
DrawText(TCanvas(ACanvas).Handle, Details, S, R, Flags, Flags2)
else