CMvcController::RouteEvent

boolCMvcController::RouteEvent(IEvent*pIEventPointer)

Routes event objects to event listeners.

Defined in: MvcController.h

Return Value

TRUE if event handled by at least one listener; otherwise FALSE.

Parameters

pIEventPointer

Pointer to event object to route.

Comments

This function iterates through the collection of event listeners and calls IEventListener::HandleEvent for each event listener object. The function returns TRUE if at least one event listener handles the event. All event listeners get a chance to handle the event, regardless of whether it has already been handled by a previous event listener.