Programming the Windows 7 Taskbar – Using the Taskbar Button Overlay Icons and Progress Bars
- Posted: Feb 23, 2010 at 7:26 AM
- 41,683 Views
- 4 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
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 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
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
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