IVsDropdownBar.GetCurrentSelection(Int32, Int32) Méthode

Définition

Retourne l'entrée actuellement sélectionnée dans une combinaison donnée.

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

Paramètres

iCombo
Int32

[in] Combinaison barre déroulante/fenêtre.

piCurSel
Int32

[out] Élément actuellement sélectionné.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Les déplacements de la souris modifient la mise en surbrillance, mais pas la sélection.

Signature COM

À partir de textmgr. idl :

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

S’applique à