IOleInPlaceComponentUIManager::SetActiveUI Method (UInt32, Guid, UInt32, array<Int32>^)
Visual Studio 2015
Allows a UI active VSPackage object to change the menus, toolbars, or commands that are displayed on its behalf by the environment.
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::Int32If 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 );
Show: