IVideoWindow::p ut_WindowState 方法 (control.h)

[與此頁面相關的功能 DirectShow 是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對 Windows 10 和 Windows 11 進行優化。 Microsoft 強烈建議新程式代碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議使用舊版 API 的現有程式代碼盡可能重寫為使用新的 API。

方法 put_WindowState 會顯示、隱藏、最小化或最大化視訊視窗。

語法

HRESULT put_WindowState(
  [in] long WindowState
);

參數

[in] WindowState

指定視窗顯示方式的旗標。 此值可以是針對 ShowWindow 函式之 nCmdShow 參數所定義的常數。

傳回值

可能的傳回值包括下列各項:

傳回碼 描述
S_OK
成功。
VFW_E_NOT_CONNECTED
影片轉譯器篩選未連線。

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 control.h (包含 Dshow.h)
程式庫 Strmiids.lib

另請參閱

錯誤和成功碼

IVideoWindow 介面

IVideoWindow::get_WindowState