Windows Aero:修订间差异

跳转到导航 跳转到搜索
删除231字节 、​ 2025 年 5 月 25 日 (星期日)
无编辑摘要
第 61 行: 第 61 行:
[[DWM]] may fail to load if appropriate display drivers are not installed, which can lead to Aero Glass borders and [[Windows Explorer|Explorer]] not rendering properly if MIL effects are enabled.
[[DWM]] may fail to load if appropriate display drivers are not installed, which can lead to Aero Glass borders and [[Windows Explorer|Explorer]] not rendering properly if MIL effects are enabled.


=== Windows Longhorn builds 4088 to 4093 ===
=== Windows Longhorn Build 4088 4093 ===
Builds within this range feature a Managed .NET rewrite of the Desktop Window Manager. This version would be abandoned after the reset, and would be replaced with a new native implementation that is largely different from the one used in builds prior to 4083. Unlike native implementations in both pre-reset and post-reset builds, this version can run even on the "Standard VGA Graphics Adapter" driver.
此范围内的版本包括桌面窗口管理器的托管 .NET 重写功能。此版本在重置后被放弃,并将被替换为新的本机实现,此实现与 4083 之前的版本中使用的实现有很大不同。与重置前和重置后版本的本机实现不同,此版本甚至可以在“标准 VGA 图形适配器(Standard VGA Graphics Adapter)”驱动程序上运行。


The new implementation is found in the component package <code>C:\build\filerepository\windowmanager_a2ea4897</code>, and is called <code>windowmanager.exe</code>. Two XAML files, <code>DwmDsk.xaml</code> and <code>DwmWin.xaml</code>, are not present in the builds and must be reconstructed in the same directory as <code>windowmanager.exe</code>. These were likely meant to be eventually included as BAMLs in the <code>aero.msstyles</code> file, had the managed DWM implementation not been ditched due to the development reset. An earlier version of the [[Jade]] theme (preferably the one found in builds 4066 to 4082, as some DWM resources that were in <code>STREAM</code> folder got converted to bitmaps in builds 4088 to 4093's Jade) or modified Jade from this range of builds that replaces bitmaps with their PNG counterparts is required in order to allow DWM to work.
新实现位于组件包 <code>C:\build\filerepository\windowmanager_a2ea4897</code> 中,称为 <code>windowmanager.exe</code>。两个 XAML 文件 <code>DwmDsk.xaml</code> <code>DwmWin.xaml</code> 在版本中不存在,必须在与 <code>windowmanager.exe</code> 相同的目录中重新构造。如果托管 DWM 实现没有因开发重置而被放弃,可能意味着这些内容最终会作为 BAML 包含在 <code>aero.msstyles</code> 文件中。为了允许 DWM 工作,需要早期版本的 Jade 主题(最好是  Build 4066 4082 中的版本,因为 <code>STREAM</code> 文件夹中的一些 DWM 资源在 Build 4088 4093 的 [[Jade]] 中转换为位图)或此版本范围中修改的 Jade,将位图替换为其 PNG 对应项。


To enable DWM, create the file <code>DwmDsk.xaml</code> in the directory <code>C:\build\filerepository\windowmanager_a2ea4897</code> with the following contents:
要启用 DWM,请在目录 <code>C:\build\filerepository\windowmanager_a2ea4897</code> 中创建文件 <code>DwmDsk.xaml</code>,其中包含以下内容:
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
DwmDsk.xaml:
DwmDsk.xaml:
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{:文档:Windows Aero DwmDsk XAML}}
{{:文档:Windows Aero DwmDsk XAML}}
</div></div>
</div></div>
Create <code>C:\build\filerepository\windowmanager_a2ea4897\DwmWin.xaml</code> with the following content:
创建 <code>C:\build\filerepository\windowmanager_a2ea4897\DwmWin.xaml</code>,包含以下内容:
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
DwmWin.xaml:
<code>DwmWin.xaml</code>:
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{:文档:Windows Aero DwmWin XAML}}
{{:文档:Windows Aero DwmWin XAML}}
</div></div>
</div></div>


DWM can then be activated by invoking <code>C:\build\filerepository\windowmanager_a2ea4897\windowmanager.exe a</code> (with an arbitrary argument to allow it to run as a regular application rather than a service), or by dragging any file onto <code>windowmanager.exe</code> in Explorer.
然后,可以通过调用 <code>C:\build\filerepository\windowmanager_a2ea4897\windowmanager.exe a</code>(使用任意参数以允许其作为常规应用程序而非服务运行)或将任何文件拖动到资源管理器中 <code>windowmanager.exe</code> 来启用 DWM。


The rewrite was originally intended to be run as a Windows service. Due to issues that prevent the service from accessing the theme data, a different <code>DwmWin.xaml</code> file that does not rely on the theming service is instead required:
此重写版本最初打算作为 Windows 服务运行。由于存在阻止服务访问主题数据的问题,因此需要一个不依赖于主题服务的不同 <code>DwmWin.xaml</code> 文件:
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
DwmWin.xaml:
<code>DwmWin.xaml</code>:
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{:文档:仅限 Windows Aero DwmWin XAML 的简单边框}}
{{:文档:仅限 Windows Aero DwmWin XAML 的简单边框}}
</div></div>
</div></div>


This produces a much simpler border design, with two variants: first is the yellow one, loaded when using the [[Slate]], [[Luna]] or [[Windows Classic]] theme; second is the blue one, loaded by using the [[Jade]] theme. Former one is used with Slate theme regardless of which variant of <code>DwmWin.xaml</code> is used. This can be run as a service, and will work without utilizing an earlier or modified current version of the Jade theme. To enable running as a service, import the following entries into the registry:
这产生了一个更简单的边框设计,有两种变体:第一种是黄色的,在使用 [[Slate]][[Luna]] [[Windows 经典]]主题时加载;第二种是蓝色的,使用 Jade 主题加载。前者与 Slate 主题一起使用,无论使用 <code>DwmWin.xaml</code> 的哪个变体。这可以作为服务运行,且无需使用早期版本或修改的当前版本的 [[Jade]] 主题即可工作。要启用作为服务运行,请将以下条目导入注册表:
{{:文档:运行 REG 的托管 DWM 服务}}
{{:文档:运行 REG 的托管 DWM 服务}}


DWM can then be started by invoking <code>net start dwm</code> or through the Services MMC snap-in. It is not recommended to set the startup type to Automatic as various desktop functionalities may break as a result of DWM starting prematurely.
然后,可以通过调用 <code>net start dwm</code> 或通过服务 MMC 管理单元启动 DWM。不建议将启动类型设置为 Automatic(自动),因为 DWM 过早启动可能会导致各种桌面功能被破坏。


Once started, desktop composition can be disabled by pressing {{key press|Ctrl|⇧ Shift|F10}}, regardless of whether the Window Manager is running as an app or a service.
启动后,可以通过按 {{key press|Ctrl|⇧ Shift|F10}} 来禁用桌面组合,无论窗口管理器是作为应用程序还是服务运行。


== Aero in Windows Vista Beta 1-2 builds ==
== Aero in Windows Vista Beta 1-2 builds ==

导航菜单