Share via


Méthode IFolderView ::GetItemPosition (shobjidl_core.h)

Obtient la position d’un élément dans l’affichage du dossier.

Syntaxe

HRESULT GetItemPosition(
  [in]  PCUITEMID_CHILD pidl,
  [out] POINT           *ppt
);

Paramètres

[in] pidl

Type : PCUITEMID_CHILD

Pointeur vers une interface ITEMIDLIST .

[out] ppt

Type : POINT*

Pointeur vers une structure qui reçoit la position du coin supérieur gauche de l’élément.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

Condition requise Valeur
Client minimal pris en charge Windows XP, Windows 7 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (inclure Shobjidl.h)
DLL Shell32.dll