Platform SDK: DirectX |
The DirectXEvent.DXCallback method provides a callback routine for event handles.
object.DXCallback(eventid As Long)
If the method fails, an error is raised and Err.Number is set.
When you implement DirectXEvent in a form, you must also supply an implementation of the DirectXEvent.DXCallback method. The declaration and end of the method are automatically placed in the Code window when you select DirectXEvent in the Object box and DXCallback in the Procedures/Events box. The method takes the following form:
Private Sub DirectXEvent_DXCallBack(ByVal eventid as Long) ' Add your own event-handling code . . . End Sub
The event handle passed to the method is one you created by using DirectX7.CreateEvent.