[译]任务栏排序工具
By robot-v1.0
本文链接 https://www.kyfws.com/applications/taskbar-sorter-utility-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 2 分钟阅读 - 863 个词 阅读量 0[译]任务栏排序工具
原文地址:https://www.codeproject.com/Articles/2423/Taskbar-Sorter-Utility
原文作者:Paul Vickery
译文由本站 robot-v1.0 翻译
前言
Utility to change order of icons in taskbar
更改任务栏中图标顺序的实用程序
介绍(Introduction)
使用此实用程序,可以通过将项目拖动到列表中的位置来更改它们在任务栏上的顺序.(This utility allows you to change the order of items on your taskbar, by dragging them into position in a list.)
该列表显示了所有可见的顶层窗口.要移动窗口,只需将窗口标题拖入希望窗口显示的顺序,然后单击"排序"按钮.(The list shows all of your visible top-level windows. To move a window you simply drag the window’s title into the order you wish the windows to appear, and click the Sort button.)
要退出该实用程序,请单击"关闭"按钮.(To exit the utility, click on the Close button.)
怎么运行的(How it works)
该应用程序枚举顶级窗口(即没有所有者),并且不会明确阻止其自身出现在任务栏中.它将每个窗口的标题添加到拖动列表框((The application enumerates windows which are top-level (ie have no owner), and do not explicitly prevent themselves appearing in the taskbar. It adds each of the windows' titles to a drag list box () CDragListBox
),以及该应用的图标.然后,用户可以重新排序窗口.当用户单击"排序"按钮时,使用(), along with the icon for the app. The user can then re-order the windows. When the user clicks the Sort button, each window is hidden using) ShowWindow(SW_HIDE)
然后重新显示((and then re-shown () ShowWindow(SW_SHOW)
),按列表的顺序-从上到下.这样做的结果是,将窗口从任务栏中删除,然后在右侧重新添加.() in the order of the list - top to bottom. This has the effect of the window being removed from the taskbar and then being re-added at the right-hand side.)
已知限制(Known limitations)
不幸的是,似乎没有任何方法可以查询任务栏来确定,首先是哪个窗口出现在其中,其次是它们当前出现的顺序.这意味着,每次运行该实用程序时,用户都需要从头开始对每个窗口重新排序.(Unfortunately there doesn’t appear to be any way of interrogating the taskbar to determine, firstly which windows appear there, and secondly in what order they currently appear. This means that each time the utility is run the user needs to re-order each window from scratch.)
这就是全部-玩得开心!(That’s all there is to it - have fun!)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VC7.0 C++ VC6 WinXP Windows Win2K MFC Visual-Studio Dev 新闻 翻译