IVideoWindow::SetWindowPosition method

The SetWindowPosition method sets the position of the video window.

Syntax


HRESULT SetWindowPosition(
  [in]  long Left,
  [in]  long Top,
  [in]  long Width,
  [in]  long Height
);

Parameters

Left [in]

The x-coordinate, in pixels.

Top [in]

The y-coordinate, in pixels.

Width [in]

The width, in pixels.

Height [in]

The height, in pixels.

Return value

Possible return values include the following:

Return codeDescription
E_INVALIDARG

Invalid argument.

S_OK

Success.

VFW_E_NOT_CONNECTED

The video renderer filter is not connected.

 

Remarks

This method has the same effect as calling the IVideoWindow::put_Left, IVideoWindow::put_Top, IVideoWindow::put_Width, and IVideoWindow::put_Height methods.

If resizing the window to the specified dimensions is impossible, this method modifies the window's size and location to make the window fit. Call the IVideoWindow::GetWindowPosition method to determine the result.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Control.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IVideoWindow Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft