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 编写进度条以在任务栏上进行自我更新?
基础教程推荐
- 全局 ASAX - 获取服务器名称 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
