请注意:本页内容发布于 1728 天前,内容可能已经过时,请注意甄别。
原文链接:https://devblogs.microsoft.com/oldnewthing/20041029-00/?p=37443
The taskbar created all sorts of interesting problems, since the work area was not equal to the entire screen dimensions. (Multiple monitors created similar problems.) “Why didn’t the gui return the usable workspace as the root window (excluding the taskbar)?”
任务栏制造了各种各样有趣的问题,由于它的存在,工作区域的尺寸与整个屏幕的分辨率并不是相等的。(多显示器环境同样制造了类似的问题。)『为什么GUI不将可用的工作区域作为顶层窗口(排除任务栏)返回呢?』
That would have made things even worse.
那样会让事情变得更糟糕。
Lots of programs want to cover the entire screen. Games, for example, are very keen on covering the entire screen. Slideshow programs also want to cover the entire screen. (This includes both slideshows for digital pictures as well as business presentations.) Screen savers of course must cover the entire screen.
很多程序都有遮挡整个屏幕的需求。例如游戏,在这方面的需求就很强烈。幻灯片应用程序也需要遮挡整个画面(这类程序同时包含了展示数码图片和商业幻灯的场合)。屏幕保护程序则必须遮挡住整个画面。
If the desktop window didn’t include the taskbar, then those programs would leave a taskbar visible while they did their thing. This is particularly dangerous for screen savers, since a user could just click on the taskbar to switch to another program without going through the screen saver’s password lock!
如果桌面窗口没有包含任务栏区域,那么这些程序在运行时任务栏就会可见。这种情形对屏幕保护程序尤为危险,因为这样一来用户就可以通过点击任务栏来切换到其它程序,从而绕过屏幕保护程序的密码保护了!
And if the taskbar were docked at the top or left edge of the screen, this would have resulted in the desktop window not beginning at coordinates (0,0), which would no doubt have caused widespread havoc. (Alternatively, one could have changed the coordinate system so that (0, 0) was no longer the top left corner of the screen, but that would have broken so many programs it wouldn’t have been funny.)
此外,如果任务栏停靠在屏幕的上方或边缘(译注:应当指的是左侧),会使得桌面窗口的左上角坐标不再是(0,0),而这样毫无疑问将会制造出大笔的麻烦。(换个思路想想的话,把坐标系统进行一点『小小的改动』,让左上角的坐标不再是(0,0)也是一种做法,但这样大概会搞炸一大堆程序,所以这一点也不好玩。)
微软:我的桌面窗口尺寸毫无波动,甚至还做了自动隐藏任务栏;
苹果:爱舔舔不舔滚