ActiveXControl.OnMappedAXEvent


public event OnMappedAXEvent

Prototype:

OnMappedAXEvent(Sender, EventData)

Parameters

Sender
the event firing control
EventData
contains the ID of the mapped event

Description:

Event fired when a mapped event is fired by the ActiveX control. For mapping an event one must call the AddEventID function.

NOTE: You are required to call the AknowledgeEvent if you know the parameters count of the ActiveX event, or more conveniently {ClearEvent}(if you don't know the number of parameters) at the end of your event handler.

The ActiveX event parameters can be obtained using the GetEventParameter function.

Return value:

This event can close the application by returning MSG_APPLICATION_QUIT. Any other return value will be ignored.