| Microsoft DirectX 8.1 (C++) |
The SetWindowForeground method moves the video window to the foreground and optionally gives it focus.
Syntax
HRESULT SetWindowForeground(
long Focus
);
Parameters
Focus
Value that specifies whether the video window will get focus. A value of 1 gives the window focus and 0 does not.
Return Value
Returns one of the following values.
| Value | Description |
| NOERROR | The method succeeded. |
| E_INVALIDARG | Focus doesn't equal 1 or 0. |
| VFW_E_NOT_CONNECTED | The current filter isn't connected to a complete filter graph. |
See Also