Freigeben über


IVideoWindow::SetWindowForeground

 
Microsoft DirectShow 9.0

IVideoWindow::SetWindowForeground

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

Syntax

  HRESULT SetWindowForeground(
  long Focus
);

Parameters

Focus

Value that 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 Values

Possible return values include the following:

Value Description
E_INVALIDARG Invalid argument.
S_OK Success.
VFW_E_NOT_CONNECTED The video renderer filter is not connected.

Requirements

Header: Declared in Control.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also