获取其上排序的浏览器窗口场 [英] Get the field on which the explorer window is sorted

查看:153
本文介绍了获取其上排序的浏览器窗口场的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有知道如何在Windows资源管理器窗口中的文件进行排序的方法。一种具有ORDER BY窗口的条款。
例:姓名升序或修改倒序日期

I would like to know if there is a way to know how the files in a Windows Explorer window are sorted. Kind of having the "ORDER BY" clause of the window. Example : "Name ascending" or "Date Modified Descending".

这问题不是Windows的名称排序算法,但对用户自定义排序具体打开Windows资源管理器窗口的标准。

This question is NOT about windows' name-sorting algorithm, but about user-defined sort criteria of a specific open Windows Explorer window.

我们的目标是,当我在Windows资源管理器中的图像上(有没问题)双击启动我的程序,并找到它是一个和下一个图像(我的程序的前面和后面的按钮),因为它是在资源管理器窗口。

The goal is, when I double-click on an image in Windows Explorer, to start my program (no problem there), and to find which were the previous and next images (for my program's previous and next buttons), as it was in the explorer window.

你知道这是可能的,如果是这样,怎么样?

Do you know if it's possible, and if so, how ?

这将是完美的,如果它是在C#中,但即使是C ++将是巨大的。

That would be perfect if it were in C#, but even C++ would be great.

推荐答案

我想你可以使用shell扩展时,他们改变坚持所有的Windows资源管理器会话磁盘的当前排序顺序,带有时间戳。然后你看的需要决定的UI是如何呈现的数据时,将您的应用程序。

I guess you could use the shell extension to persist the current sort order of all windows explorer sessions to disk when they changed, with timestamps. Then you read that data into your app when needed to decide how the UI is rendered.

这篇关于获取其上排序的浏览器窗口场的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆