Partager via


IVsUIShell.SetMRUComboText(Guid, UInt32, String, Int32) Method

Definition

Adds information to a combo box list.

public:
 int SetMRUComboText(Guid % pguidCmdGroup, System::UInt32 dwCmdID, System::String ^ lpszText, int fAddToList);
public int SetMRUComboText (ref Guid pguidCmdGroup, uint dwCmdID, string lpszText, int fAddToList);
abstract member SetMRUComboText : Guid * uint32 * string * int -> int
Public Function SetMRUComboText (ByRef pguidCmdGroup As Guid, dwCmdID As UInteger, lpszText As String, fAddToList As Integer) As Integer

Parameters

pguidCmdGroup
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
UInt32

[in] The command to be executed. This command must belong to the group specified with pguidCmdGroup.

lpszText
String

[in] Specifies the text to place in the combo box list.

fAddToList
Int32

[in] If true, then the text in lpszText is added to the combo box.

Returns

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

Remarks

COM Signature

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.

Applies to