Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]
The put_MaintainAspectRatio method specifies whether the Video Control maintains the aspect ratio of the source video.
Syntax
HRESULT put_MaintainAspectRatio(
[in] VARIANT_BOOL NewValue
);
Parameters
[in] NewValue
Specifies one of the following values.
| Value | Description |
|---|---|
| VARIANT_TRUE | The Video Control will maintain the aspect ratio of the source video. |
| VARIANT_FALSE | The Video Control will stretch the video to fill the window. (Default.) |
Return value
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows�XP [desktop apps only] |
| Minimum supported server | None supported |
| Target Platform | Windows |
| Header | msvidctl.h |