Programming the Windows 7 Taskbar – Using the Taskbar Button Overlay Icons and Progress Bars
- Posted: Feb 23, 2010 at 7:26 AM
- 41,320 Views
- 4 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
This is the second screencast in a series of Windows 7 screencasts for showing developers how to use the taskbar to Light Up their applications on Windows 7.
This screencast explains how to use the Win 32 API to control the taskbar's Overlay Icons and Progress bar. Both taskbar features exists to compensate for the deprecated Notification Area (AKA as Sys-Try)
The code shown in this screencast is available to download. The other screencasts in this series are:Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
I found this very interesting and immediately decided to try and add the progress bars to an installer application I have that runs with elevated priviliges (because it is installing a device driver). I was rather surprised when it didn't work. So I tried running your application by right clicking and "Run as administrator". This didn't work either - there was no progress bar. Is this a feature of the taskbar that it is disabled when running as administrator or is there some gotcha. This was on an x64 system and the application was compiled as x64.
The Short story: The answer is yes. Taskbar is part of your explorer.exe process, which run as standard user. If you run as admin, the tasbkar manager can't cross the mitigation boundry and therefore the messages are not sent (or recieved) by the elevated running application.
The Long story:
Please work through the User Interface Privilege Isolation lab on 9: http://channel9.msdn.com/learn/courses/Windows7/UIPI
Please also see our general Windows 7 Developer Training on 9: http://channel9.msdn.com/learn/courses/Windows7
Many thanks Yochay - that is very helpful indeed - I will work through the lab you suggested. In general, these videos are excellent, I hope we will see many more of them.
Great video!
Sasha, Yochay: Are there Get equivalents of the SetOverlayIcon, SetProgressValue and SetProgressState?
Thanks.
Remove this comment
Remove this thread
close