IControlbar::Detach method (mmc.h)

The IControlbar::Detach method breaks the association between a control and the control bar. This command removes or detaches the control from the control bar on which it is displayed.

Syntax

HRESULT Detach(
  [in] LPUNKNOWN lpUnknown
);

Parameters

[in] lpUnknown

A pointer to the IUnknown interface on the control object that represents the control removed.

Return value

This method can return one of these values.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h
DLL Mmcndmgr.dll

See also

IToolbar