Share via


Méthode IUIAutomationNotificationEventHandler ::HandleNotificationEvent (uiautomationclient.h)

Gère un événement de notification Microsoft UI Automation.

Syntaxe

HRESULT HandleNotificationEvent(
  [in] IUIAutomationElement   *sender,
       NotificationKind       notificationKind,
       NotificationProcessing notificationProcessing,
       BSTR                   displayString,
       BSTR                   activityId
);

Paramètres

[in] sender

Pointeur vers l’élément qui a déclenché l’événement.

notificationKind

Type de notification.

notificationProcessing

Indique comment traiter les notifications.

displayString

Chaîne à afficher dans le message de notification.

activityId

Chaîne unique non localisée permettant d’identifier une action ou un groupe d’actions. Cela permet de transmettre des informations supplémentaires au gestionnaire d’événements.

Valeur retournée

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

Remarques

Cette méthode est implémentée par l’application pour gérer les événements auxquels elle s’est abonnée en appelant AddNotificationEventHandler.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 10, version 1709 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2016 (applications de bureau uniquement)
Plateforme cible Windows
En-tête uiautomationclient.h (incluez UIAutomation.h)

Voir aussi

IUIAutomationNotificationEventHandler