Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Folder View in ActiveX WebBrowser in Dlg
#20
Is there a way to use: SortColumns
Below code does not work.
Code:
Copy      Help
BSTR s="Date Modified" ;; s="PKEY_ItemNameDisplay" (does not work).
fv.SortColumns=s

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
Code:
Copy      Help
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=s
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
Code:
Copy      Help
typedef struct {
  GUID  fmtid;
  DWORD pid;
} PROPERTYKEY;

If this will take to much time to get it working then please skip it.

For "grouping by" I used the following which worked:
Code:
Copy      Help
BSTR s="Type"
fv.GroupBy=s
Page: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
That's why I hoped 'Sorting' could be done with the same approach...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)