如何获取文件/ dirs在资源管理器中的顺序? [英] How to get the order of files/dirs in the Explorer?
问题描述
我用C ++编程,Windows
我想知道我是否可以得到某个文件夹中的文件顺序。
FileFind的顺序按字母顺序排列。
I am programming in C++, Windows I wonder if I can get the order of files in a certain folder. the order of FileFind seems by alphabetic order.
例如。我可以拖动文件夹中的文件夹/文件。如果我再次打开它,订单将保持。
我希望我可以得到这个订单。
很多谢谢!
For example. I can drag folders/files in a folder. and if I open it again, the order will remain. I wish I can get this order. Many Thanks!
对不起,我的问题说得不够清楚。
我认为在explorer中的顺序是关于文件系统。现在我从你的答案知道,这只是探险家的秩序。
然后,我如何从浏览器中读取命令。
Sorry for not stating my question clear enough. I thought the order in explorer is about file system. now I know from your answers, It is just explorer's order. Then ,How can I read the order from explorer.
情况如下:
我写一个图像查看器,双击a图像,打开窗口。并按 - >< - ,您可以导航图像文件夹。
用户希望在我的图像查看器中的导航顺序就像在浏览器中的顺序。我不知道该怎么做。
The situation is as bellow: I am writting a image viewer, double-click an Image, open the window. and press "->" "<-", you can navigate the image folder. Users want the order of the navigation in my image viewer is just like the order in explorer. I don't know how to do it.
有没有任何shell API来做这个?
Is there any shell API todo this?
推荐答案
IFolderView 可能会做你想要的,但我不知道如何得到它(不是一个shell程序员)。
IFolderView might do what you want, but I have no idea how to get it (not a shell programmer).
这篇关于如何获取文件/ dirs在资源管理器中的顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!