IVideoWindow::SetWindowForeground method

The SetWindowForeground method places the video window at the top of the Z order.

Syntax


HRESULT SetWindowForeground(
   long Focus
);

Parameters

Focus

Specifies whether to give the window focus. Must be one of the following values:

Value Description
OATRUE Give the window focus.
OAFALSE Do not give the window focus.

 

Return value

Possible return values include the following:

Return codeDescription
E_INVALIDARG

Invalid argument.

S_OK

Success.

VFW_E_NOT_CONNECTED

The video renderer filter is not connected.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Control.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IVideoWindow Interface

 

 

Show: