Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : Sorting ShellFolder
| Subject: | Sorting ShellFolder |
| Posted by: | "Alejandro Castro" (alejand..@poware.com) |
| Date: | Fri, 25 May 2007 14:37:07 |
Hi
Im using the TListView component to display the directory of my PC
Im using the follwing code to sort the selected directory (Taken from
examples of Borland)
function ListSortFunc(Item1, Item2: Pointer): Integer;
begin
Result := SmallInt(FZip.FIShellFolder.CompareIDs(
0,
PShellItem(Item1).ID,
PShellItem(Item2).ID
));
end;
But I need to sort by size, name, or type
I know the first parameter of CompareIDs (0) is the criteria but, what can I
do or change in order to sort using different criteria, (0 = Display Name)
Thanks in advance
Alejandro