CEventListenerBase::HandleEvent

bool CEventListenerBase::HandleEvent(IEvent* pIEvent)

Receive an event and attempt to handle it.

Defined in: EventListener.h

Return Value

TRUE if event is handled; otherwise FALSE.

Parameters

pIEvent

Pointer to event object.

Comments

This function calls the function IEvent::Dispatch on the event passed in. The listener passes a pointer to itself to the event's dispatch message.

Class Members

virtual bool QueryGuid(REFGUID guid, void **ppvObj)

Retrieve a pointer to an interface supported by this object.

virtual ULONG STDMETHODCALLTYPE AddRef()

Add a reference to this object.

virtual ULONG STDMETHODCALLTYPE Release()

Release a reference to this object.

virtual bool HandleEvent(IEvent* pIEvent)

Receive an event and attempt to handle it.