CBaseControlWindow::GetWindowPosition

 
Microsoft DirectShow 9.0

CBaseControlWindow::GetWindowPosition

The GetWindowPosition method retrieves the current coordinates for the window.

Syntax

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

Parameters

pLeft

Pointer to the left coordinate, in screen coordinates.

pTop

Pointer to the top coordinate, in screen coordinates.

pWidth

Pointer to the window width, in screen coordinates.

pHeight

Pointer to the window height, in screen coordinates.

Return Value

Returns an HRESULT value.

Requirements

**  Header:** Declared in Ctlutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also