Sets the SinkEvents flag to switch COM event handling on or off
BOOL SetSinkEvents( BOOL bSinkEvents ); |
The new value of the SinkEvents flag
Returns the new value of the SinkEvents flag.
This function sets 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.
Note: |
---|
This method is deprecated. |
The functions registered using CXllApp::SetComEventHandler() will not be called unless SetSinkEvents(TRUE) has been called.
In addition, the following handlers are switched on and off by SetSinkEvents():
Note that the other overridable functions (OnXllOpen() etc) are not affected by the SinkEvents flag.
Header: xllplus.h