IVsProfferCommands4::FindCommandBar Method (Object^, Guid, UInt32, Object^)
Visual Studio 2015
Find the object implementing a specific command.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int FindCommandBar( Object^ pToolbarSet, [InAttribute] Guid% pguidCmdGroup, unsigned int dwMenuId, [OutAttribute] Object^% ppdispCmdBar )
Parameters
- pToolbarSet
-
Type:
System::Object^
[in] The toolbar set to search. Use null to search the main (default) toolbar set.
- pguidCmdGroup
-
Type:
System::Guid
[in] The GUID for the command group to search. Use GUID_Macro or GUID_AddIn defined in vbapkg.idl.
- dwMenuId
-
Type:
System::UInt32
[in] The id of the menu item corresponding to the command.
- ppdispCmdBar
-
Type:
System::Object^
[out] The object.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: