Share via


ITaskbarList::AddTab (Compact 2013)

3/28/2014

This method adds an item to the taskbar.

Syntax

HRESULT AddTab(
  HWND hwnd
);

Parameters

  • hwnd
    Handle to the window to be added to the taskbar.

Return Value

Returns NOERROR if successful, or an OLE-defined error code otherwise.

Remarks

Any type of window can be added to the taskbar, but it is recommended that the window have at least the WS_CAPTION style.

Any window added with this method must be removed with the DeleteTab method when the added window is destroyed.

Requirements

Header

shobjidl.h,
shobjidl.idl

Library

Developer Implemented

See Also

Reference

ITaskbarList
ITaskbarList::DeleteTab
Shell Interfaces