IOleInPlaceComponentUIManager::SetActiveUI Method (UInt32, Guid, UInt32, array<Int32>^)

 

Allows a UI active VSPackage object to change the menus, toolbars, or commands that are displayed on its behalf by the environment.

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

int SetActiveUI(
	unsigned int dwCompRole,
	[InAttribute] Guid% rclsid,
	unsigned int cCmdGrpId,
	array<int>^ rgnCmdGrpId
)

Parameters

dwCompRole
Type: System::UInt32

[in] Role of the in-place object requesting the user interface change. For a list of valid dwCompRole values, see OLEROLE.

rclsid
Type: System::Guid

[in] Class identifier (CLSID) of the in-place object requesting the change.

cCmdGrpId
Type: System::UInt32

[in] Count of the toolbars identified by rgnCmdGrpId.

rgnCmdGrpId
Type: array<System::Int32>^

[in] Array of identifiers of toolbars to be displayed in the update.

Return Value

Type: System::Int32

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

From oleipc.idl:

HRESULT IOleInPlaceComponentUIManager::SetActiveUI(
   [in] DWORD dwCompRole,
   [in] REFCLSID rclsid,
   [in] ULONG cCmdGrpId,
   [in] LONG *rgnCmdGrpId
);
Return to top
Show: