IControlbar::Create

[This is preliminary documentation and subject to change.]

Creates and returns the control requested by the snap-in.

HRESULT Create(
  MMC_CONTROL_TYPE nType,  // Type of control to be created
  LPEXTENDCONTROLBAR pExtendControlbar,
                         // Pointer to IExtendControlBar
  LPUNKNOWN * ppUnknown  // Address at which to return the object.
);
 

Parameters

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

pExtendControlbar
[in] Pointer to the IExtendControlbar interface on the control to be created on the control bar.
ppUnknown
[out] Pointer to the address of the IUnknown interface of the control that was created.

Return Values

S_OK
The control was successfully created and returned.

Remarks

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

See Also

IToolbar