Returns the state of the COM event handler
BOOL GetSinkEvents( ) const;
Returns TRUE if COM events are being handled.
This function returns the state of the COM event handler.
If it is set to TRUE, then the event handlers for COM events will be invoked whenever significant events occur in Excel.
You can specify event handlers by overloading the appropriate virtual function in your derived application class.