Skip to content

Latest commit

 

History

History
101 lines (57 loc) · 2.78 KB

cbasecontrolwindow-dosetwindowstyle.md

File metadata and controls

101 lines (57 loc) · 2.78 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location ms.custom
The DoSetWindowStyle method changes the typical or extended window styles.
4a9a97fb-b527-44ce-af8c-e5ea832ed4c4
CBaseControlWindow.DoSetWindowStyle method (Ctlutil.h)
reference
4/26/2023
APIRef
kbSyntax
CBaseControlWindow.DoSetWindowStyle
COM
Strmbase.lib
Strmbase.dll
Strmbasd.lib
Strmbasd.dll
UpdateFrequency5

CBaseControlWindow.DoSetWindowStyle method

[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 DoSetWindowStyle method changes the typical or extended window styles.

Syntax

HRESULT DoSetWindowStyle(
   long Style,
   long WindowLong
);

Parameters

Style

Appropriate window styles.

WindowLong

Value specifying which styles to set. Must be one of the following:

Label Value
GWL_STYLE Retrieve the window styles.
GWL_EXSTYLE Retrieve the extended window styles.

Return value

Returns an HRESULT value.

Remarks

This member function calls the Win32 SetWindowLong function to set the window style, and then redisplays the window in the current position. This member function is called by the CBaseControlWindow::put_WindowStyle and CBaseControlWindow::put_WindowStyleEx member functions.

Requirements

Requirement Value
Header
Ctlutil.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CBaseControlWindow Class