Share via


IVideoWindow::put_WindowStyle

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method changes the style parameters for the video window.

Syntax

HRESULT put_WindowStyle(
  long WindowStyle
);

Parameters

  • WindowStyle
    [in] Set of flags that matches a subset of the flags that can be set by the GWL_STYLE value of the Win32 GetWindowLong function.

Return Value

Returns an HRESULT value.

Remarks

Use this property to change the overall style of the video window; for example, to remove the border and caption areas of the video window.

It is a fairly thin wrapper on top of setting the GWL_STYLE value of the Win32 GetWindowLong function and therefore must be treated with care.

Be sure the current styles are first retrieved, and then the necessary bit fields are added or removed.

With some exceptions (noted here), the acceptable flags are the same as those allowed by the Win32 CreateWindow function.

Do not use this method to affect the window size. For example, if the window is minimized, do not set the WS_MAXIMIZE style; doing so causes unpredictable results.

Instead, use the IVideoWindow::put_WindowState method for maximizing or minimizing the window.

Any of the following styles return E_INVALIDARG:

  • 50WS_DISABLED
  • WS_HSCROLL
  • WS_ICONIC
  • WS_MAXIMIZE
  • WS_MINIMIZE
  • WS_VSCROLL

Requirements

Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

IVideoWindow Interface