Donos de Lanhouse
Tips on internet cafes, Google, Linux, Windows and free software.
Agenda Chrome Earth Bills Pack Reader
Blogger Docs Gmail Orkut Picasa Talk

New Windows 7 TaskBar

April 6, 2009 - 6:23

The new bar (tasks) of , I find it much more convenient than Vista / XP.


What makes the new tasks in 7?


A link on the MSDN documentation how it works from the end user, and especially on the Win32 API to access the functionality of their applications.

Basically the new tasks complements the Quick LanchBar: run the application (eg IE) and then you have access to instances of the same (different window / tab) browser from a single location. This is automatic if the request is "right" to the thought of Win7 Taskbar directly or indirectly. The new API allows win32 this fact: the ability to use the taskbar and functionality for the end user from an application written by us.

image

If you end up with the mouse to one of the applications that you put on the taskbar and press Right, look at what is called a Jump List containing the data recently accessed the possibility of the pin or not 'Application to the Taskbar etc.

image

Another interesting feature is the visualization of the groups (guide) for an application, it is difficult to see when you open the tab in IE8, as in:

image

Or the result of the progression observed in the same overlay as you download the file:

image

And if we wanted to do for our application, for example, when a build is a little 'time?


Programming with. NET?


Windows 7 available for the Win32 API to get access to a feature that I told you earlier. But, as already exist for Windows Vista Managed wrapper for accessing these APIs, if we want to make a request. NET applications that will leverage the new user interface we can do.

In MSDN Gallery are examples of facts that use the Windows 7 Taskbar and Libraries. NET Interop Sample Library. These are based on the modified version 1.4 of Windows Vista Bridge API.

In the gallery are several examples of different features.


Progression of Windows 7

For example, if we see a progression indicating that our request is to do something challenging, we

1. Add libraries to manage the tasks of Windows 7, which are the ones you see in the picture:

image

In this case, simply call the API SetProgressValue, as in the following code

image

Now, the second and third parameter represents the percentage of completion and final operation, the second value will go away ... aggioranto away, in the example found in MSDN Gallery is a timer used for the simulation. The result is that you see below:

image

If I want to see an error here's how:

image

And the result:

image

How to get Handle of WPF?

The examples found on MSDN, mostly using simple Windows Forms, if you want to use WPF to get the same functionality that you need to have the handle to the window operating system.

It can be done through the Win32 API with WPF interop:

image

This point is to manipulate the value you must use the APIs in Windows 7 Taskbar, at least for the progress bar

There are many other API, you can use too. NET through these libraries:

image

You can place icons overlap, creating preview clip to see more commonly offered by Windows 7.

Download

Compartilhar com observação Manter como não lido Add star Share Share with note Keep unread


Tags: ,

Post a Comment