CBaseControlWindow.DoGetWindowStyle 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 DoGetWindowStyle method retrieves the current normal or extended window styles.

Syntax

HRESULT DoGetWindowStyle(
   long *pStyle,
   long WindowLong
);

Parameters

pStyle

Pointer to a variable that receives the style information.

WindowLong

Value specifying which styles to retrieve. 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 GetWindowLong function to retrieve the window style. It is called by the CBaseControlWindow::get_WindowStyle and CBaseControlWindow::get_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