Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Sets the style of the control window.

Syntax

HRESULT put_WindowStyleEx(
  long 
WindowStyleEx
);

Parameters

WindowStyleEx

[in] Value that specifies the style of the control window.

Return Value

Returns NOERROR.

Remarks

This method uses EX (extended) window styles. For a complete list of extended window styles, see the Win32 CreateWindowExfunction.

To change the window style, retrieve the current window style, and then add or remove the necessary bit fields.

Do not use the following window styles because they are not validated:

  • WS_DISABLED

  • WS_HSCROLL

  • WS_ICONIC

  • WS_MAXIMIZE

  • WS_MINIMIZE

  • WS_VSCROLL

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

Requirements

Windows Embedded CE Windows CE 3.0 and later
Windows Mobile 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