05-29-2016, 02:26 PM
Is there a way to use: SortColumns
Below code does not work.
I tried the following links:
ShellFolderView [Events, Methods, Properties]: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
ShellFolderView.ViewOptions property: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
Shell Structures >> SORTCOLUMN structure: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
Page: https://msdn.microsoft.com/en-us/library...85%29.aspx
SORTDIRECTION: SORT_DESCENDING/SORT_ASCENDING
[/code]
Property System Reference >> Structures: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
If this will take to much time to get it working then please skip it.
For "grouping by" I used the following which worked:
Page: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
That's why I hoped 'Sorting' could be done with the same approach...
Below code does not work.
I tried the following links:
ShellFolderView [Events, Methods, Properties]: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
ShellFolderView.ViewOptions property: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
Shell Structures >> SORTCOLUMN structure: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
typedef struct SORTCOLUMN {
PROPERTYKEY propkey;
SORTDIRECTION direction;
} SORTCOLUMN;
For sorting by type I used, which works. That's why I was hoping I could go the same route when Sorting...:
[code]
BSTR s="Type"
fv1.GroupBy=sSORTDIRECTION: SORT_DESCENDING/SORT_ASCENDING
[/code]
Property System Reference >> Structures: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
If this will take to much time to get it working then please skip it.
For "grouping by" I used the following which worked:
Page: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
That's why I hoped 'Sorting' could be done with the same approach...
