mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 07:00:35 +02:00
win32: use default thememanager drawing for treeitem text if os < vista
git-svn-id: trunk@24884 -
This commit is contained in:
parent
6ff1d590b7
commit
ca09af423f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user