How do I code a progress bar for Windows 7 to also update itself on the taskbar?(如何为 Windows 7 编写进度条以在任务栏上进行自我更新?)
问题描述
Windows 7 有一个很棒的新功能,应用程序可以通过状态栏报告当前活动的进度.例如,当使用 Windows 资源管理器复制文件时,任务栏中的应用程序图标顶部会出现一个进度条,并在更新时显示进度.
Windows 7 has an AWESOME new feature that applications can report the progress of the current activity through the status bar. For example, when copying file(s) using Windows Explorer, a progress bar is layered on top of the application icon in the task bar and the progress is shown as it updates.
显示进度条的 API 是什么?上面有 MSDN 文档吗?
What is the API for exposing the progress bar? Is there MSDN documentation on it?
推荐答案
MSDN 杂志上有一篇关于 新的任务栏 API.是的,这个功能很棒:-)
There's a good article in MSDN magazine about the new taskbar APIs. And yes, the feature is awesome :-)
本质上,这一切都是为了实现IFileOperation
.有一篇关于在托管代码中使用它的好文章 这里.
Essentially, it's all about implementing IFileOperation
. There's a good article about using it in managed code here.
这篇关于如何为 Windows 7 编写进度条以在任务栏上进行自我更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何为 Windows 7 编写进度条以在任务栏上进行自我更新?


- C#MongoDB使用Builders查找派生对象 2022-09-04
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 输入按键事件处理程序 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01