Microsoft DirectX 9.0

IMixerOCX::SetDrawRegion

The SetDrawRegion method specifies the location and dimensions of the video and clipping rectangles in screen coordinates.

Syntax

HRESULT SetDrawRegion(
  LPPOINT  lpptTopLeftSC,
  LPCRECT  prcDrawCC,
  LPCRECT  lprcClip
);

Parameters

lpptTopLeftSC

[in]  Specifies the top left of the video rectangle in screen coordinates.

prcDrawCC

[in]  Specifies the video rectangle in screen coordinates.

lprcClip

[in]  Specifies the clipping rectangle in screen coordinates.

Return Values

The method returns an HRESULT value. Possible values include those in the following table.

Values Description
S_OK The method succeeded.
E_INVALIDARG Either prcDrawCC or lprcClip are NULL.

Remarks

The lpptTopLeftSC parameter should be NULL unless the MIXER_DRAW_DC_ONSCREEN flag is set to TRUE.

See Also