TurboPack MustangpeakEasyListview is part of VirtualShellTools for the Listview but can be used for a TListview Replacement that is faster and more customizable.
function TEasyHeader.GetViewWidth: Integer;
begin
if Positions.Count > 0 then
Result := Positions[Positions.Count - 1].DisplayRect.Right
else
Result := 0
end;
Compiler error occurs in line Result := Positions[Positions.Count - 1].DisplayRect.Right
Win32 compile is successful.
Using Delphi 12 and Win64 build:
Compiler error occurs in line Result := Positions[Positions.Count - 1].DisplayRect.Right Win32 compile is successful.