IControlbar::Detach

[This is preliminary documentation and subject to change.]

Breaks the association between a control and the control bar. This command removes or detaches the toolbar from the control bar on which it is displayed.

HRESULT Detach(
  LPUNKNOWN lpUnknown  // Pointer to IUnknown.
);
 

Parameters

lpUnknown
[in] Pointer to the IUnknown interface on the control object representing the control being removed.

Return Values

S_OK
The control was successfully detached from the control bar.

See Also

IToolbar