3 out of 4 rated this helpful - Rate this topic

ITaskbarList interface

Applies to: desktop apps only

Exposes methods that control the taskbar. It allows you to dynamically add, remove, and activate items on the taskbar.

Members

The ITaskbarList interface inherits from the IUnknown interface. ITaskbarList also has these types of members:

Methods

The ITaskbarList interface has these methods.

MethodDescription
ActivateTab

Activates an item on the taskbar. The window is not actually activated; the window's item on the taskbar is merely displayed as active.

AddTab

Adds an item to the taskbar.

DeleteTab

Deletes an item from the taskbar.

HrInit

Initializes the taskbar list object. This method must be called before any other ITaskbarList methods can be called.

SetActiveAlt

Marks a taskbar item as active but does not visually activate it.

 

Remarks

You do not implement ITaskbarList; it is implemented by the Shell.

Use ITaskbarList to add items to the taskbar, remove items from the taskbar, and activate items on the taskbar.

See Modifying Contents of the Taskbar for more information about using this interface.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP

Minimum supported server

Windows 2000 Server

Header

Shobjidl.h

DLL

Shell32.dll (version 4.71 or later)

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
vb.net syntax
<ComImport(), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("56FDF342-FD6D-11D0-958A-006097C9A090")> _
Public Interface ITaskbarList Sub HrInit() Sub AddTab(<[In]()> ByVal hwnd As IntPtr) Sub DeleteTab(<[In]()> ByVal hwnd As IntPtr) Sub ActivateTab(<[In]()> ByVal hwnd As IntPtr) Sub SetActivateAlt(<[In]()> ByVal hwnd As IntPtr) End Interface