IVsDropdownBar.GetCurrentSelection(Int32, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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
);