IControlbar::Detach method

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

lpUnknown [in]

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.

S_OK

The control was successfully detached from the control bar.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IToolbar

 

 

Show: