IVsUIShell::SetMRUComboText Method (Guid, UInt32, String^, Int32)
Visual Studio 2015
Adds information to a combo box list.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int SetMRUComboText( [InAttribute] Guid% pguidCmdGroup, unsigned int dwCmdID, String^ lpszText, int fAddToList )
Parameters
- pguidCmdGroup
-
Type:
System::Guid
[in] Unique identifier of the command group; can be null to specify the standard group. All the commands that are passed in the nCmdID must belong to the group specified by pguidCmdGroup.
- dwCmdID
-
Type:
System::UInt32
[in] The command to be executed. This command must belong to the group specified with pguidCmdGroup.
- lpszText
-
Type:
System::String^
[in] Specifies the text to place in the combo box list.
- fAddToList
-
Type:
System::Int32
[in] If true, then the text in lpszText is added to the combo box.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsUIShell::SetMRUComboText( [in] const GUID * pguidCmdGroup, [in] DWORD dwCmdId, [in] LPSTR lpszText, [in] BOOL fAddToList );
Use SetMRUComboTextW in place of this method.
Show: