I'm developing a explorer data provider based on this sample. I already added drag & drop support. Now I want that the files and folders can be ordered by filetyp, size or whatever. The problem seems that the virtual files have only the name property like you can see on the screenshot.

How can I add more properties or columns to order the content?
The solution is to write a class which implement ICategorizer and to add a mapping into IShellFolder2::MapColumnToSCID between the index and the PROPERTYKEY and also to add a mapping info IShellFolder2 ::GetDetailsOf for index and the column name.
That is all :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With