[英]How can i create/add animated icon/image for my application to be show in the taskbar?
This link shows how to make an animated icon in the tray icon : 此链接显示了如何在任务栏图标中制作动画图标:
http://blogs.msdn.com/b/abhinaba/archive/2005/09/12/animation-and-text-in-system-tray-using-c.aspx http://blogs.msdn.com/b/abhinaba/archive/2005/09/12/animation-and-text-in-system-tray-using-c.aspx
But sometimes the user can't see all the icons in the tray icon . 但是有时用户看不到任务栏图标中的所有图标。 I want that when my program is recording while a process runs, the program will be in the TaskBar with animated icon/image .
我希望当程序在运行过程中进行记录时,该程序将位于带有动画图标/图像的任务栏中。 When it stops recording, it will be back to the tray icon regular without animation.
停止录制后,它将正常返回到托盘图标而没有动画。
How can i do it ? 我该怎么做 ?
The link you've supplied demonstrates what you're trying to do by the looks. 您提供的链接通过外观展示了您正在尝试执行的操作。
All you will need to do is listen for and catch the recording event, change the notification icon and start the animation loop. 您需要做的就是监听并捕获录制事件,更改通知图标并开始动画循环。 When recording stops you will do the same - change the icon back and start the loop again.
停止录制后,您将执行相同操作-将图标改回并重新开始循环。
Whether or not a user can see taskbar or tray icons will depend on their personal preferences so I'm not sure this is something you'll have any control over. 用户是否可以看到任务栏或任务栏图标将取决于他们的个人偏好,因此我不确定这是您可以控制的事情。
If you can tell us what particular part you're getting stuck on, perhaps we can help further. 如果您可以告诉我们您遇到了哪些特定问题,也许我们可以提供进一步的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.