IControlbar::Attach

[This is preliminary documentation and subject to change.]

Allows the snap-in to associate a control with a control bar.

HRESULT Attach(
  MMC_CONTROL_TYPE nType,  // Specifies the type of control
  LPUNKNOWN lpUnknown  // Pointer to an IUnknown interface.
);
 

Parameters

nType
[in] Specifies the type of control to be associated with the control bar. Currently, it can only be the following:
Value Meaning
TOOLBAR The control to be associated with the control bar is a toolbar.

lpUnknown
[in] Pointer to the IUnknown interface on the control object to be inserted.

Return Values

S_OK
The toolbar or combo box was successfully created.

Remarks

In connection with the nType parameter, COMBOBOXBAR appears in mmc.idl but is not implemented at this time.

See Also

IToolbar