5,388
社区成员
发帖
与我相关
我的任务
分享
ListView1.CustomSort(sortpro:PFNLVCOMPARE;lParam:Integer);
function CustomSortProc(Item1, Item2: TListItem; ParamSort: integer): integer; stdcall;
procedure TForm1.ListView1ColumnClick(Sender: TObject;
Column: TListColumn);
begin
ListView1.CustomSort(@CustomSortProc, Column.Index);
end;