# 任务栏

任务栏是图形用户界面中位于桌面边缘的一条常驻条带，用于显示正在运行的应用程序，并让用户在其中切换、启动程序以及监控系统状态。最著名的例子随 [Microsoft Windows](https://www.edgepedia.org/zh/microsoft-windows) 一同提供，任务栏于 1995 年与[开始菜单](https://www.edgepedia.org/zh/start-menu)一起出现在 [Windows 95](https://www.edgepedia.org/zh/windows-95) 中，类似的元素还包括 macOS 的 Dock 和 GNOME 的 dash。

| 关键事实 | 详情 |
|---|---|
| 引入时间 | Windows 95（1995 年），与开始菜单一同推出；任务栏列出所有打开的窗口以便快速切换<sup>[1](https://arstechnica.com/features/2005/05/gui/)</sup><sup> • </sup><sup>[2](https://www.theseus.fi/bitstream/10024/96403/1/EvolutionOfUserInterfaceInMicrosoftWindowsOperatingSystems.pdf)</sup> |
| 最初用途 | 主要是应用程序切换器，开始菜单则充当启动器<sup>[3](https://www.theregister.com/os-platforms/2026/09/03/which-came-first-windows-95s-taskbar-or-nexts-dock-neither/5293715)</sup> |
| 主要区域 | 开始按钮、运行中或已固定应用程序的任务按钮、用于状态图标的通知区域，以及（自 Windows 7 起）固定的启动器快捷方式<sup>[4](https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/shell/taskbar-extensions.md)</sup> |
| 编程接口 | 应用程序通过 Shell_NotifyIcon 函数和 NOTIFYICONDATA 结构（NIM_ADD、NIM_MODIFY、NIM_DELETE）管理通知区域图标<sup>[5](https://learn.microsoft.com/en-us/windows/win32/shell/taskbar)</sup> |
| Windows 11（2021 年）移除的功能 | 拖放、应用标签、“从不合并”选项，以及将任务栏移动到其他屏幕边缘<sup>[6](https://www.windowscentral.com/microsoft/windows-11/windows-11-2021-vs-windows-11-2026-five-years-later-how-much-has-microsofts-operating-system-really-changed)</sup> |
| 近期方向 | Windows 11 26H2 在商用设备上默认启用应用特定的任务栏操作，并允许用户从任务栏监控受支持的 AI 代理<sup>[8](https://learn.microsoft.com/windows/whats-new/whats-new-windows-11-version-26h2?WT.mc_id=WDIT-MVP-5000497)</sup> |

## Windows 95 中的起源

Windows 95 引入了开始菜单，所有程序均可从中启动；同时引入了任务栏，所有正在运行的程序均可在其中切换<sup>[1](https://arstechnica.com/features/2005/05/gui/)</sup>。微软自己 1995 年的指南将任务栏描述为最初专门面向新手设计的程序启动器和任务切换器，并指出用户只需看一眼任务栏就能看到所有活动任务<sup>[9](https://bitsavers.computerhistory.org/pdf/microsoft/windows_95/Introducing_Microsoft_Windows_95_1995.pdf)</sup>。一份同时代关于 Windows 界面的记述将任务栏描述为 Windows 桌面的锚点<sup>[10](https://worldradiohistory.com/UK//Personal-Computer-World/90s/PCW-1995-09-S-OCR.pdf)</sup>。

这一设计有着有据可查的内部历史。丹尼尔·奥兰（Daniel Oran）是微软个人系统组的项目经理，曾参与芝加哥（Chicago）的用户界面工作——芝加哥是后来成为 95 的那个 Windows 版本的代号——他后来描述了开始菜单和任务栏的设计<sup>[11](https://archive.blogs.harvard.edu/danieloran/2022/11/28/qa-about-the-windows-start-menu-and-taskbar/)</sup>。任务栏是否借鉴了 NeXT 的 Dock，这个问题被反复提出；参与者给出的答案是，两者服务于不同的目的，最初的任务栏主要是应用程序切换器，而开始菜单则充当启动器<sup>[3](https://www.theregister.com/os-platforms/2026/09/03/which-came-first-windows-95s-taskbar-or-nexts-dock-neither/5293715)</sup>。

## 结构与行为

Windows 任务栏将多种功能集于一条条带之中：

- **任务按钮。** 每个正在运行的应用程序或窗口组对应一个按钮。当任务栏变得拥挤时，拥有多个打开窗口的应用会折叠为单个应用按钮；默认设置为“始终，隐藏标签”，而“任务栏已满时”则会将每个窗口显示为单独的带标签按钮，直到空间用尽<sup>[12](https://support.microsoft.com/en-us/windows/experience/personalization/customize-the-taskbar-in-windows)</sup>。
- **固定启动器。** 自 [Windows 7](https://www.edgepedia.org/zh/windows-7) 任务栏起，快速启动不再是单独的工具栏；它通常包含的快捷方式被固定到任务栏本身，与正在运行的应用程序按钮混在一起。当用户从固定快捷方式启动应用程序时，图标会在运行期间变为该应用程序的任务栏按钮，应用关闭后再恢复原状。只有用户才能固定更多应用程序；不允许通过程序进行固定<sup>[4](https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/shell/taskbar-extensions.md)</sup>。
- **通知区域。** 应用程序通过 Shell_NotifyIcon 函数将状态图标放置于此，填充 NOTIFYICONDATA 结构并以 dwMessage 设置为 NIM_ADD、NIM_MODIFY 或 NIM_DELETE 进行调用。任务栏创建时，Shell 会注册一条名为 TaskbarCreated 的消息并广播给所有顶层窗口，以便正在运行的应用程序知道需要重新添加其图标；在 [Windows 10](https://www.edgepedia.org/zh/windows-10) 上，当主显示器的 DPI 发生变化时，任务栏也会广播此消息<sup>[5](https://learn.microsoft.com/en-us/windows/win32/shell/taskbar)</sup>。
- **显示桌面。** 来自快速启动的“显示桌面”功能现在位于任务栏最右端。将鼠标悬停在此区域会使所有活动窗口透明化，显示桌面；单击则最小化所有窗口<sup>[4](https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/shell/taskbar-extensions.md)</sup>。

分组是可编程的。每个任务栏按钮可以代表一个启动器、单个窗口或一个组，每个组都会被分配一个称为应用程序用户模型 ID（AppUserModelID）的标识符。应用程序可以指定 AppUserModelID 来覆盖标准分组，使原本可能不被视为同组的窗口加入同一组；每个组成员在缩略图浮出控件中都有自己的预览<sup>[4](https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/shell/taskbar-extensions.md)</sup>。

按应用程序类型进行任务栏分组早于 Windows 7：[BeOS](https://www.edgepedia.org/zh/beos) 于 1995 年随 BeBox 推出，它按应用程序类型对任务进行排序，因此文字处理器中加载的每个文档都可以在该文字处理器下的子菜单中找到<sup>[1](https://arstechnica.com/features/2005/05/gui/)</sup>。

## Windows 11 的重建

当微软在 2021 年为 [Windows 11](https://www.edgepedia.org/zh/windows-11) 重建任务栏，将其图标居中并简化外观时，这次重写让用户失去了若干熟悉的功能：拖放、应用标签、“从不合并”设置，以及将任务栏停靠到其他屏幕边缘的能力；右键菜单也被削减为只剩一个快捷方式<sup>[6](https://www.windowscentral.com/microsoft/windows-11/windows-11-2021-vs-windows-11-2026-five-years-later-how-much-has-microsofts-operating-system-really-changed)</sup>。发布时，用户可以隐藏任务栏，但无法调整其大小或移动它<sup>[13](https://www.pcworld.com/article/539183/windows-11-review-an-unnecessary-replacement-for-windows-10.html)</sup>。

**功能逐步回归。** 2026 年 5 月，即发布五年后，Windows 11 任务栏重新获得了停靠到屏幕任意边缘（包括左侧和右侧）的能力，这在 Windows 10 和许多更早版本中可以实现，但自 Windows 11 发布以来一直缺失<sup>[7](https://arstechnica.com/gadgets/2026/05/five-years-later-windows-11-brings-back-much-missed-taskbar-options-and-more/)</sup>。更早的 2025 年 7 月，任务栏图标缩放开始向 Canary 频道预览体验成员推出：当任务栏因固定或打开的应用而变得拥挤时，图标会自动缩小，以便更多应用保持可见，并提供“任务栏已满时”（默认）、“从不”和“始终”的设置<sup>[14](https://blogs.windows.com/windows-insider/2025/07/11/announcing-windows-11-insider-preview-build-27898-canary-channel/)</sup>。

任务栏也正成为 AI 功能的界面。Windows 11 2026 更新说明指出，新的任务栏体验让访问 AI 驱动的工具和跟踪跨任务进度变得更加容易<sup>[15](https://support.microsoft.com/en-us/windows/deployment/updates-lifecycle/inside-this-update?OCID=WUSettings)</sup>，而版本 26H2 为商用设备默认启用应用特定的任务栏操作，让用户可以直接从任务栏体验中访问常用操作<sup>[8](https://learn.microsoft.com/windows/whats-new/whats-new-windows-11-version-26h2?WT.mc_id=WDIT-MVP-5000497)</sup>。微软新的搜索体验可从任务栏进入，进一步扩展了这一点：它整合了最近的文件、应用、设置控件和快速操作，并能执行诸如通过“手机连接”发送短信等任务<sup>[16](https://www.windowscentral.com/microsoft/windows-11/windows-11s-new-search-experience-is-about-more-than-finding-files-thousands-of-actions-are-now-at-your-fingertips-right-from-the-taskbar)</sup>。

## 与 Dock 和 GNOME 的比较

macOS 的 Dock 在提供应用快速访问方面与任务栏相似，且默认位于屏幕底部。一个关键区别是 Windows 任务栏有搜索框，而 Dock 没有；macOS 改为提供聚焦搜索（Spotlight），可通过 Command + Space 快捷键使用<sup>[17](https://www.techradar.com/computing/mac-os/what-is-the-macos-dock-heres-how-to-master-apples-taskbar-rival-on-your-brand-new-macbook-neo)</sup>。Dock 还兼作基本的通知系统，当应用需要关注时会在其图标上显示红色徽章，并且承载着废纸篓，而在 Windows 中废纸篓位于桌面上而非任务栏中<sup>[17](https://www.techradar.com/computing/mac-os/what-is-the-macos-dock-heres-how-to-master-apples-taskbar-rival-on-your-brand-new-macbook-neo)</sup>。

GNOME 采取了不同的方式。其 dash 显示在活动概览的底部，展示收藏和正在运行的应用程序，运行中应用的图标下方有一个小圆点，但 GNOME 刻意避免提供任务栏那种始终可见的窗口列表，以便用户可以专注于手头的任务<sup>[18](https://teams.pages.gitlab.gnome.org/websites/help.gnome.org/gnome-help/shell-introduction.html.pa)</sup>。

## References

1. [A History of the GUI, Ars Technica](https://arstechnica.com/features/2005/05/gui/)
2. [Evolution of User Interface in Microsoft Windows Operating Systems, Theseus](https://www.theseus.fi/bitstream/10024/96403/1/EvolutionOfUserInterfaceInMicrosoftWindowsOperatingSystems.pdf)
3. [Which came first, Windows 95's taskbar or NeXT's Dock? Neither, The Register](https://www.theregister.com/os-platforms/2026/09/03/which-came-first-windows-95s-taskbar-or-nexts-dock-neither/5293715)
4. [Taskbar extensions, MicrosoftDocs/win32 on GitHub](https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/shell/taskbar-extensions.md)
5. [The Taskbar, Win32 apps, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/shell/taskbar)
6. [The Windows 11 Microsoft shipped in 2021 and the Windows 11 we have in 2026 are worlds apart, Windows Central](https://www.windowscentral.com/microsoft/windows-11/windows-11-2021-vs-windows-11-2026-five-years-later-how-much-has-microsofts-operating-system-really-changed)
7. [Five years later, Windows 11 brings back much-missed taskbar options (and more), Ars Technica](https://arstechnica.com/gadgets/2026/05/five-years-later-windows-11-brings-back-much-missed-taskbar-options-and-more/)
8. [What's new in Windows 11, version 26H2 for IT pros, Microsoft Learn](https://learn.microsoft.com/windows/whats-new/whats-new-windows-11-version-26h2?WT.mc_id=WDIT-MVP-5000497)
9. [Introducing Microsoft Windows 95 (1995), bitsavers](https://bitsavers.computerhistory.org/pdf/microsoft/windows_95/Introducing_Microsoft_Windows_95_1995.pdf)
10. [Personal Computer World, September 1995](https://worldradiohistory.com/UK//Personal-Computer-World/90s/PCW-1995-09-S-OCR.pdf)
11. [Q&A about the Windows Start Menu and Taskbar, Daniel Oran, Applied Psychology](https://archive.blogs.harvard.edu/danieloran/2022/11/28/qa-about-the-windows-start-menu-and-taskbar/)
12. [Customize the Taskbar in Windows, Microsoft Support](https://support.microsoft.com/en-us/windows/experience/personalization/customize-the-taskbar-in-windows)
13. [Windows 11 review, PCWorld](https://www.pcworld.com/article/539183/windows-11-review-an-unnecessary-replacement-for-windows-10.html)
14. [Announcing Windows 11 Insider Preview Build 27898 (Canary Channel), Windows Insider Blog](https://blogs.windows.com/windows-insider/2025/07/11/announcing-windows-11-insider-preview-build-27898-canary-channel/)
15. [Inside this update, Microsoft Support](https://support.microsoft.com/en-us/windows/deployment/updates-lifecycle/inside-this-update?OCID=WUSettings)
16. [Windows 11's new native Search can control your PC, Windows Central](https://www.windowscentral.com/microsoft/windows-11/windows-11s-new-search-experience-is-about-more-than-finding-files-thousands-of-actions-are-now-at-your-fingertips-right-from-the-taskbar)
17. [What is the macOS Dock?, TechRadar](https://www.techradar.com/computing/mac-os/what-is-the-macos-dock-heres-how-to-master-apples-taskbar-rival-on-your-brand-new-macbook-neo)
18. [Visual overview of GNOME, GNOME Help](https://teams.pages.gitlab.gnome.org/websites/help.gnome.org/gnome-help/shell-introduction.html.pa)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/taskbar

English original: https://www.edgepedia.org/taskbar
