IVideoWindow::GetWindowPosition

 
Microsoft DirectShow 9.0

IVideoWindow::GetWindowPosition

The GetWindowPosition method retrieves the position of the video window.

Syntax

  HRESULT GetWindowPosition(
    long *pLeft,
    long *pTop,
    long *pWidth,
    long *pHeight
);

Parameters

pLeft

[out] Pointer to a variable that receives the x-coordinate, in pixels.

pTop

[out] Pointer to a variable that receives the y-coordinate, in pixels.

pWidth

[out] Pointer to a variable that receives the width of the window, in pixels.

pHeight

[out] Pointer to a variable that receives the height of the window, in pixels.

Return Values

Possible return values include the following:

Value Description
E_POINTER NULL pointer.
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::get_Left, IVideoWindow::get_Top, IVideoWindow::get_Width, and IVideoWindow::get_Height methods.

Requirements

Header: Declared in Control.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also