Engine.RegisterUIMessageCallback ( callbackFuncAddr)
Registers a C function as the UIMessage event callback.
You can use a C function as the Event callback, instead of using ActiveX events or polling.
![]() | Note Make sure the UIMessagePollingEnabled property is set to False or your callback will not be called. |
The callback function must use the following C function prototype:
void __cdecl UIMessageCallback(struct IDispatch *UIMessageDisp);
The UIMessageDisp parameter is the IDispatch pointer to a UIMessage object.
![]() | Note Because this pointer is passed to your callback as a parameter, do not release it when you finish using it. |
![]() | Note This method should only be used inside of the sequence editor or user interface. |
callbackFuncAddr As long
[In] Pass the address of the callback function.