IVsProfferCommands4::AddCommandBar Method (String^, UInt32, Object^, UInt32, Object^)

 

Adds a command bar to the user interface.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int AddCommandBar(
	String^ pszCmdBarName,
	unsigned int dwType,
	Object^ pCmdBarParent,
	unsigned int dwIndex,
	[OutAttribute] Object^% ppCmdBar
)

Parameters

pszCmdBarName
Type: System::String^

[in] The name of the command bar.

dwType
Type: System::UInt32

[in] A value from the vsCommandBarType enumeration.

pCmdBarParent
Type: System::Object^

[in] The parent of the command bar. Use null for a top-level command bar.

dwIndex
Type: System::UInt32

[in] The index location at which to insert the new command bar on the parent.

ppCmdBar
Type: System::Object^

[out] The new command bar.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return to top
Show: