TONT 42093 Alt+Tab的顺序是怎么决定的?

你们这来来回回的,这是走城门呢?

原文链接:https://blogs.msdn.microsoft.com/oldnewthing/20031020-00/?p=42093

What determines the order in which icons appear in the Alt+Tab list?

Alt+Tab中图标的顺序是怎样决定的呢?

The icons appear in the same order as the window Z-order. When you switch to a window, then it comes to the top of the Z-order. If you minimize a window, it goes to the bottom of the Z-order. The Alt+Esc hotkey (gosh, does anybody still use Alt+Esc?) takes the current top window and sends it to the bottom of the Z-order (and the window next in line comes to the top). The Alt+Shift+Esc hotkey (I bet you didn’t know that hotkey even existed) takes the bottom-most window and brings it to the top, but does not open the window if it is minimized.

这个顺序是与窗口的Z-order(Z顺序)一致的。当用户切换至某个窗口时,这个窗口就被放到了Z-order的顶端,同样如果最小化某个窗口,则该窗口就被放入Z-order的底端。Alt+Esc(哎呀,还有人会用这个组合键吗)将当前最前端的窗口送入Z-order的底端(同时在Z-order中的下一个窗口成为最前端),Alt+Shift+Esc(我敢说你根本不知道还有这么个热键)会将Z-order最底端的窗口拿到最顶端来,但如果这个窗口处于最小化状态,则不会将其还原。

The presence of “always on top” windows makes this a little more complicated. The basic rule is that an “always on top” window always appears on top of a “not always on top” window. So if the above rules indicate that a “not always on top” window comes to the top, it really just goes as high as it can without getting on top of any “always on top” windows.

『总在最前端』的设计让这个问题变得有些复杂。基本的原则是,『总在最前端』的窗口永远显示在『非总在最前端』窗口的上层。所以,依照上述规则,当一个『非总在最前端』窗口被提前到顶端时,这个窗口将尽可能被排到最顶层,但也总是处于所有『总在最前端』窗口之下。

You may have run across the term “fast task switching”. This was the term used to describe the precursor to the current Alt+Tab switching interface. The old way of switching via Alt+Tab (Windows 3.0 and earlier) was just like Alt+Esc, except that the window you switched to was automatically opened if it had been minimized. When the new Alt+Tab was added to Windows 3.1, we were concerned that people might prefer the old way, so there was a switch in the control panel to set it back to the slow way. (There is also a setting SPI_SETFASTTASKSWITCH that lets you change it programmatically.) It turns out nobody complained, so the old slow way of task switching was removed entirely and the setting now has no effect.

你可能听说过一个术语『快速任务切换』。这个术语是用来描述如今Alt+Tab任务切换机制的前辈的。旧式的Alt+Tab任务切换机制(Windows 3.0及以前版本)与Alt+Esc类似(译注:即没有屏幕中间出现一个小窗口、列出所有前台程序图标的形式,而只是在窗口之间循环切换),只是如果切换到的窗口被最小化了则会自动还原。当新的Alt+Tab任务切换机制加入Windows 3.1时,开发人员意识到有些用户可能更喜欢过往的方式,所以在控制面板中放置了一个开关,用户可以切换回以前比较低效的方式。(同时还有一个设置项SPI_SETFASTTASKSWITCH 允许开发者以程序化的方式修改这个设置)后来我们发现似乎没人抱怨,所以旧式的任务切换模式就被彻底移除了,而这个设置项现在也不会有任何作用。

This does highlight the effort we take to try to allow people who don’t like the new way of doing something to go back to the old way. It turns out that corporations with 10,000 employees don’t like it when the user interface changes, because it forces them to spend millions of dollars retraining all their employees. If you open up the Group Policy Editor, you can see the zillions of deployment settings that IT administrators can use to disable a variety of new Windows UI features.

这个过渡也体现了我们为不喜欢新模式的用户保留切换回旧思维的努力。我们发现,有1万名那么多员工的公司尤其不喜欢界面发生变动,因为这样会逼迫他们花上几百万元重新培训员工。有空时你可以去看看组策略编辑器,里面会有堆积如山的部署设置来让IT管理员关闭新版的Windows界面设计(来适应其需求)。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

 剩余字数 ( Characters available )

注:请不要在评论中插入任何链接,否则将自动被识别为垃圾评论,博主将完全看不到。

Notice: please DO NOT add any links in your comment, otherwise it would be identified as SPAM automatically.

*