Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional 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
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. PrevState and NewState can have one of the values 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. |
See Also