如何为 Windows 7 编写进度条以在任务栏上进行自我更新? [英] How do I code a progress bar for Windows 7 to also update itself on the taskbar?

查看:20
本文介绍了如何为 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 编写进度条以在任务栏上进行自我更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆