Export (0) Print
Expand All

IMixerPinConfig::SetRelativePosition method

The SetRelativePosition method sets the position of the stream in the display window.

Syntax


HRESULT SetRelativePosition(
  [in]  DWORD dwLeft,
  [in]  DWORD dwTop,
  [in]  DWORD dwRight,
  [in]  DWORD dwBottom
);

Parameters

dwLeft [in]

Value specifying the x-coordinate in the upper-left corner of the display window.

dwTop [in]

Value specifying the y-coordinate in the upper-left corner of the display window.

dwRight [in]

Value specifying the x-coordinate in the bottom-right corner of the display window.

dwBottom [in]

Value specifying the y-coordinate in the bottom-right corner of the display window.

Return value

Returns an HRESULT value. Possible values include the following:

Return codeDescription
E_INVALIDARG

Coordinates not in the {0, 0, 10,000, 10,000} range.

S_OK

Success.

 

Remarks

This method assumes window coordinates of {0, 0, 10,000, 10,000}. Therefore, if you want your video stream to be rendered in the bottom right quarter of the display window, you would call this method with the parameters {5,000, 5,000, 10,000, 10,000}.

Note  Values greater than 10,000 are invalid and will cause an error.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mpconfig.h

Library

Strmiids.lib

See also

Error and Success Codes
IMixerPinConfig Interface
IMixerPinConfig::GetRelativePosition

 

 

Community Additions

ADD
Show:
© 2014 Microsoft