IUIAutomationWindowPattern 介面 (uiautomationclient.h)

提供視窗基本功能的存取權。

繼承

IUIAutomationWindowPattern 介面繼承自 IUnknown 介面。 IUIAutomationWindowPattern 也有下列類型的成員:

方法

IUIAutomationWindowPattern 介面具有這些方法。

 
IUIAutomationWindowPattern::Close

關閉視窗。
IUIAutomationWindowPattern::get_CachedCanMaximize

擷取快取值,指出視窗是否可以最大化。
IUIAutomationWindowPattern::get_CachedCanMinimize

擷取快取值,指出視窗是否可以最小化。
IUIAutomationWindowPattern::get_CachedIsModal

擷取表示視窗是否為強制回應的快取值。
IUIAutomationWindowPattern::get_CachedIsTopmost

擷取快取值,指出視窗是否為迭置順序中最上層的元素。
IUIAutomationWindowPattern::get_CachedWindowInteractionState

擷取快取值,指出用戶互動時視窗的目前狀態。
IUIAutomationWindowPattern::get_CachedWindowVisualState

擷取表示視窗視覺狀態的快取值;也就是說,無論是處於正常狀態、最大化或最小化狀態。
IUIAutomationWindowPattern::get_CurrentCanMaximize

指出視窗是否可以最大化。 (IUIAutomationWindowPattern.get_CurrentCanMaximize)
IUIAutomationWindowPattern::get_CurrentCanMinimize

指出視窗是否可以最小化。 (IUIAutomationWindowPattern.get_CurrentCanMinimize)
IUIAutomationWindowPattern::get_CurrentIsModal

指出視窗是否為強制回應。 (IUIAutomationWindowPattern.get_CurrentIsModal)
IUIAutomationWindowPattern::get_CurrentIsTopmost

指出視窗是否為迭置順序中最上層的元素。 (IUIAutomationWindowPattern.get_CurrentIsTopmost)
IUIAutomationWindowPattern::get_CurrentWindowInteractionState

針對用戶互動的目的,擷取視窗的目前狀態。
IUIAutomationWindowPattern::get_CurrentWindowVisualState

擷取視窗的視覺狀態;也就是說,無論是處於正常狀態、最大化或最小化狀態。
IUIAutomationWindowPattern::SetWindowVisualState

最小化、最大化或還原視窗。
IUIAutomationWindowPattern::WaitForInputIdle

導致將呼叫程式碼封鎖指定的時間,或直到相關聯的處理序進入閒置狀態 (就看何者先完成)。 (IUIAutomationWindowPattern.WaitForInputIdle)

備註

支援此控制項模式的控制項範例包括最上層應用程式視窗、多文檔介面 (MDI) 子視窗,以及強制回應對話框。

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista SP2 和 Platform Update for Windows Vista、Windows XP 含 SP3 和適用於 Windows Vista 的平臺更新 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [僅限桌面應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

用戶端的控制項模式介面