IUIAutomationPropertyChangedEventHandler::HandlePropertyChangedEvent Method

Handles a Microsoft UI Automation property-changed event.

Syntax

HRESULT HandlePropertyChangedEvent(      
    IUIAutomationElement *sender,
    PROPERTYID propertyId,
    VARIANT newValue
);

Parameters

  • sender
    [in] The address of the IUIAutomationElement interface of the element that raised the event.
  • propertyId
    [in] The identifier of the property whose value has changed. For a list of property IDs, see Property Identifiers.
  • newValue
    [in] A VARIANT that contains the new property value.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method is implemented by the application to handle events that it has subscribed to by using IUIAutomation::AddPropertyChangedEventHandler.