共用方式為


IVideoWindow::get_WindowState

 
Microsoft DirectShow 9.0

IVideoWindow::get_WindowState

The get_WindowState method queries whether the video window is visible, hidden, minimized, or maximized.

Syntax

  HRESULT get_WindowState(
    long *WindowState
);

Parameters

WindowState

[out] Pointer to a variable that receives one of the following flags:

  • SW_HIDE
  • SW_MAXIMIZE
  • SW_MINIMIZE
  • SW_SHOW

The meanings of these flags are defined by the Windows ShowWindow function.

Return Values

Possible return values include the following:

Value Description
E_POINTER NULL pointer.
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