Compartir a través de


IVsDropdownBar.GetCurrentSelection(Int32, Int32) Method

Definition

Returns the entry that is currently selected in a given combination.

public:
 int GetCurrentSelection(int iCombo, [Runtime::InteropServices::Out] int % piCurSel);
int GetCurrentSelection(int iCombo, [Runtime::InteropServices::Out] int & piCurSel);
public int GetCurrentSelection (int iCombo, out int piCurSel);
abstract member GetCurrentSelection : int * int -> int
Public Function GetCurrentSelection (iCombo As Integer, ByRef piCurSel As Integer) As Integer

Parameters

iCombo
Int32

[in] The drop-down bar/Window combination.

piCurSel
Int32

[out] Currently selected item.

Returns

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

Remarks

Mouse moves change the highlight but not the selection.

COM Signature

From textmgr.idl:

HRESULT IVsDropdownBar::GetCurrentSelection(  
   [in] long iCombo,  
   [out] long *piCurSel  
);  

Applies to