共用方式為


IVideoWindow.SetWindowPosition

 
Microsoft DirectShow 9.0

IVideoWindow.SetWindowPosition

  • Note   This topic is deprecated. It applies to Visual Basic 6.0. DirectShow is not supported for Visual Basic .NET or C#.

The SetWindowPosition method sets the position of the video window.

Syntax

  objVideoWindow
  .SetWindowPosition(
    Left As Long, 
    Top As Long, 
    Width As Long, 
    Height As Long)

Parameters

Left

Specifies the x-coordinate, in pixels.

Top

Specifies the y-coordinate, in pixels. 

Width

Specifies the width, in pixels.

Height

Specifies the height, in pixels.

Return Values

This method does not return a value.

Remarks

This method has the same effect as setting the IVideoWindow.Left, IVideoWindow.Top, IVideoWindow.Width, and IVideoWindow.Height properties.

Requirements

Reference: Add a reference to ActiveMovie control type library.

Library: Quartz.dll.

See Also