Share via


IDirectDrawVideo::UseWhenFullScreen (Compact 2013)

3/26/2014

This method determines whether DirectShow might change display mode when going to full-screen mode.

Syntax

HRESULT UseWhenFullScreen(
  long UseWhenFullScreen
);

Parameters

  • UseWhenFullScreen
    Set to OATRUE to cause the renderer to use DirectX in full-screen mode; otherwise, set to OAFALSE.

Return Value

Returns an HRESULT value.

Remarks

When asked to go to full-screen mode, DirectShow has a number of choices:

  • Determine if filters in the graph can support full-screen playback directly. If one can, it will be asked to do so.
  • Automatically add a special full-screen renderer to the filter graph that uses DirectDraw mode-changing services to play back the video.
    By changing display modes, the video effectively fills more (but not necessarily all) of the display. For example, if the current mode is 1024 x 768 pixels, a video might look relatively small, but when displayed in a 320 x 240 display mode it might look very presentable.
  • For any renderer supporting the IVideoWindow interface, have its window stretched full-screen.
    This typically offers lower performance than the second option (swapping in a full-screen DirectDraw-enabled renderer).
    If the UseWhenFullScreen parameter is set to On (OATRUE), the window is always stretched full-screen for full-screen playback.
    If the UseWhenFullScreen parameter is set to Off (the default), the filter graph manager can swap in the DirectDraw-enabled full-screen renderer.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IDirectDrawVideo Interface