RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TShellWindows.InvokeEvent Method

Dispatches an event from the COM server to the appropriate event handler.

Pascal
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
C++
virtual __fastcall InvokeEvent(TDispID DispID, TVariantArray Params);

InvokeEvent descendants use InvokeEvent internally to link their event handlers to events on the COM server. 

DispID is the dispatch ID for the appropriate event handler. 

Params passes the parameters of the event handler as an array of OleVariants. 

As implemented in InvokeEvent, InvokeEvent does nothing, because InvokeEvent has no events. Descendants that surface events from a COM server override this method so that the event sink specified by EventDispatch can pass events on to the appropriate event handlers. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!