Méthode IUserNotification ::SetIconInfo (shobjidl_core.h)

Définit l’icône de zone de notification associée à des informations utilisateur spécifiques.

Syntaxe

HRESULT SetIconInfo(
  [in] HICON   hIcon,
  [in] LPCWSTR pszToolTip
);

Paramètres

[in] hIcon

Type : HICON

Handle de l’icône.

[in] pszToolTip

Type : LPCWSTR

Pointeur vers une chaîne qui contient le texte d’info-bulle à afficher pour l’icône spécifiée. Cette valeur peut être NULL, même si elle n’est pas recommandée.

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 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2003 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (inclure Shobjidl.h)
DLL Shell32.dll