IVideoWindow::put_FullScreenMode method (control.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The put_FullScreenMode
method enables or disables full-screen video rendering.
Syntax
HRESULT put_FullScreenMode(
[in] long FullScreenMode
);
Parameters
[in] FullScreenMode
Boolean value that specifies whether to enable or disable full-screen mode. Must be one of the following values:
Value | Description |
---|---|
OATRUE | Switch to full-screen mode. |
OAFALSE | Disable full-screen mode. (Default.) |
Return value
Possible return values include the following:
Return code | Description |
---|---|
|
Filter does not support full-screen mode. |
|
Already in the requested mode. |
|
Success. |
|
Could not find any filter that supports full-screen mode. |
Remarks
Depending on the video renderer, the switch to full-screen mode may not be visible until the application runs or pauses the graph. In full-screen mode, if the user switches away from the application (for example, using ALT + TAB), the Filter Graph Manager sends an EC_FULLSCREEN_LOST event.
The following remarks describe how the Filter Graph Manager implements full-screen mode. Application developers can probably ignore this information, but it may be useful if you are writing a custom video renderer.
When an application switches to full-screen mode, the Filter Graph Manager searches for a video renderer that will function most efficiently. In order of preference, these are:
- Any video renderer in the filter graph that natively supports full-screen mode.
- Any video renderer in the filter graph that can stretch the video to full-screen without a significant performance cost.
- The Full Screen Renderer filter.
- Any video renderer in the filter graph that supports IVideoWindow.
For the second option, the Filter Graph Manager calls IVideoWindow::GetMaxIdealImageSize and GetMinIdealImageSize on every video renderer in the graph. If the size of the display falls within the filter's reported range, it indicates that the filter can stretch the video without a significant performance cost.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | control.h (include Dshow.h) |
Library | Strmiids.lib |