Microsoft DirectX 9.0

StateChange Event (MSVidCtl)

This topic applies to Windows XP only.

The StateChange event is called by the MSVidCtl object when the state of the Video Control changes.

Syntax

object_StateChange(
    PrevState As Long,
    NewState As Long)

Parameters

  PrevState

Identifies the previous state of the Video Control.

  NewState

Identifies the new state of the Video Control.

Remarks

Possible values for PrevState and NewState are shown in the following table.

Value Description
1 The Video Control has not created a filter graph.
2 The Video Control is stopped.
3 The Video Control is paused.
4 The Video Control is playing.

This event is analogous to the DirectShow EC_COMPLETE event. You will need to implement a separate event handler in your application for each device type.

See Also