Share via


Méthode IShellWindows::OnNavigate (exdisp.h)

Se produit lorsqu’une fenêtre Shell est naviguée vers un nouvel emplacement.

Syntaxe

HRESULT OnNavigate(
  [in] long    lCookie,
  [in] VARIANT *pvarLoc
);

Paramètres

[in] lCookie

Type : long

Cookie qui identifie la fenêtre.

[in] pvarLoc

Type : VARIANT*

Variant de type VT_VARIANT | VT_BYREF. Définissez la valeur de pvarLoc sur un PIDL absolu (PIDLIST_ABSOLUTE) qui spécifie le nouvel emplacement.

Valeur retournée

Type : HRESULT

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

Notes

Une fenêtre reçoit un cookie lorsqu’elle est inscrite en tant que fenêtre Shell. Pour plus d’informations, consultez IShellWindows::Register.

Spécifications

   
Plateforme cible Windows
En-tête exdisp.h
DLL Shdocvw.dll (version 5.00.2014.0216 ou ultérieure)

Voir aussi

IShellWindows

IShellWindows::OnActivated

IShellWindows::OnCreated