TypeAndMemberDropdownBars.OnItemSelected(Int32, Int32) Method

Definition

Called when an entry is highlighted in one of the combo boxes.

C++/CX
public:
 virtual int OnItemSelected(int combo, int index);

Parameters

combo
Int32

[in] The ID of the combo box (0 for the types combo box, 1 for the members combo box).

index
Int32

[in] The index of the entry that was highlighted.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

Remarks

This method is called when an entry is highlighted in a combo box. When the item is clicked on or otherwise chosen, The OnItemChosen method is called.

This method is an implementation of the OnItemSelected method on the IVsDropdownBarClient method.

The base method does nothing and always returns a success code of S_OK.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022