IUIAutomationWindowPattern
COM公式ドキュメント
ウィンドウの基本的な機能へのアクセスを提供します。
解説(Remarks)
このコントロールパターンをサポートするコントロールの例には、トップレベルのアプリケーションウィンドウ、マルチドキュメントインターフェイス (MDI) の子ウィンドウ、モーダルダイアログボックスなどがあります。
メソッド 15
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
ウィンドウを閉じます。
戻り値
解説(Remarks)
分割ペインコントロールに対して呼び出された場合、このメソッドはペインを閉じ、関連する分割を削除します。実装によっては、他のすべてのペインも閉じることがあります。
指定された時間、または関連するプロセスがアイドル状態になるまでのいずれか早い方まで、呼び出し元のコードをブロックさせます。(IUIAutomationWindowPattern.WaitForInputIdle)
| milliseconds | INT | in | 関連するプロセスがアイドル状態になるまで待機する時間 (ミリ秒単位)。 |
| success | BOOL* | out | 結果を受け取ります。ウィンドウがアイドル状態になった場合は TRUE、タイムアウトが発生した場合は FALSE となります。 |
戻り値
ウィンドウを最小化、最大化、または元に戻します。
| state | WindowVisualState | in | ウィンドウの新しい表示状態。 |
戻り値
ウィンドウを最大化できるかどうかを示します。(IUIAutomationWindowPattern.get_CurrentCanMaximize)
| retVal | BOOL* | out | ウィンドウを最大化できるかどうかを示す論理値を受け取るポインタである。 |
ウィンドウを最小化できるかどうかを示します。(IUIAutomationWindowPattern.get_CurrentCanMinimize)
| retVal | BOOL* | out | ウィンドウを最小化できるかどうかを示す論理値を受け取るポインタである。 |
ウィンドウがモーダルかどうかを示します。(IUIAutomationWindowPattern.get_CurrentIsModal)
| retVal | BOOL* | out | ウィンドウがモーダルかどうかを示す論理値を受け取るポインタである。 |
ウィンドウが z オーダーで最前面の要素かどうかを示します。(IUIAutomationWindowPattern.get_CurrentIsTopmost)
| retVal | BOOL* | out | ウィンドウが最前面(トップモスト)かどうかを示す論理値を受け取るポインタである。 |
ウィンドウの表示状態、すなわち通常・最大化・最小化のいずれの状態にあるかを取得します。
| retVal | WindowVisualState* | out | ウィンドウの現在の表示状態を示す WindowVisualState 値を受け取るポインタである。 |
ユーザー操作の観点から、ウィンドウの現在の状態を取得します。
| retVal | WindowInteractionState* | out | ウィンドウの現在の操作可能状態を示す WindowInteractionState 値を受け取るポインタである。 |
ウィンドウを最大化できるかどうかを示すキャッシュされた値を取得します。
| retVal | BOOL* | out | キャッシュされた、ウィンドウを最大化できるかどうかを示す論理値を受け取るポインタである。 |
ウィンドウを最小化できるかどうかを示すキャッシュされた値を取得します。
| retVal | BOOL* | out | キャッシュされた、ウィンドウを最小化できるかどうかを示す論理値を受け取るポインタである。 |
ウィンドウがモーダルかどうかを示すキャッシュされた値を取得します。
| retVal | BOOL* | out | キャッシュされた、ウィンドウがモーダルかどうかを示す論理値を受け取るポインタである。 |
ウィンドウが z オーダーで最前面の要素かどうかを示すキャッシュされた値を取得します。
| retVal | BOOL* | out | キャッシュされた、ウィンドウが最前面かどうかを示す論理値を受け取るポインタである。 |
ウィンドウの表示状態、すなわち通常・最大化・最小化のいずれの状態にあるかを示すキャッシュされた値を取得します。
| retVal | WindowVisualState* | out | キャッシュされた、ウィンドウの表示状態を示す WindowVisualState 値を受け取るポインタである。 |
ユーザー操作の観点から、ウィンドウの現在の状態を示すキャッシュされた値を取得します。
| retVal | WindowInteractionState* | out | キャッシュされた、ウィンドウの操作可能状態を示す WindowInteractionState 値を受け取るポインタである。 |
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
#define global IID_IUIAutomationWindowPattern "{0FAEF453-9208-43EF-BBB2-3B485177864F}" #usecom global IUIAutomationWindowPattern IID_IUIAutomationWindowPattern "{}" #comfunc global IUIAutomationWindowPattern_Close 3 #comfunc global IUIAutomationWindowPattern_WaitForInputIdle 4 int,var #comfunc global IUIAutomationWindowPattern_SetWindowVisualState 5 int #comfunc global IUIAutomationWindowPattern_get_CurrentCanMaximize 6 var #comfunc global IUIAutomationWindowPattern_get_CurrentCanMinimize 7 var #comfunc global IUIAutomationWindowPattern_get_CurrentIsModal 8 var #comfunc global IUIAutomationWindowPattern_get_CurrentIsTopmost 9 var #comfunc global IUIAutomationWindowPattern_get_CurrentWindowVisualState 10 var #comfunc global IUIAutomationWindowPattern_get_CurrentWindowInteractionState 11 var #comfunc global IUIAutomationWindowPattern_get_CachedCanMaximize 12 var #comfunc global IUIAutomationWindowPattern_get_CachedCanMinimize 13 var #comfunc global IUIAutomationWindowPattern_get_CachedIsModal 14 var #comfunc global IUIAutomationWindowPattern_get_CachedIsTopmost 15 var #comfunc global IUIAutomationWindowPattern_get_CachedWindowVisualState 16 var #comfunc global IUIAutomationWindowPattern_get_CachedWindowInteractionState 17 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IUIAutomationWindowPattern "{0FAEF453-9208-43EF-BBB2-3B485177864F}" #usecom global IUIAutomationWindowPattern IID_IUIAutomationWindowPattern "{}" #comfunc global IUIAutomationWindowPattern_Close 3 #comfunc global IUIAutomationWindowPattern_WaitForInputIdle 4 int,sptr #comfunc global IUIAutomationWindowPattern_SetWindowVisualState 5 int #comfunc global IUIAutomationWindowPattern_get_CurrentCanMaximize 6 sptr #comfunc global IUIAutomationWindowPattern_get_CurrentCanMinimize 7 sptr #comfunc global IUIAutomationWindowPattern_get_CurrentIsModal 8 sptr #comfunc global IUIAutomationWindowPattern_get_CurrentIsTopmost 9 sptr #comfunc global IUIAutomationWindowPattern_get_CurrentWindowVisualState 10 sptr #comfunc global IUIAutomationWindowPattern_get_CurrentWindowInteractionState 11 sptr #comfunc global IUIAutomationWindowPattern_get_CachedCanMaximize 12 sptr #comfunc global IUIAutomationWindowPattern_get_CachedCanMinimize 13 sptr #comfunc global IUIAutomationWindowPattern_get_CachedIsModal 14 sptr #comfunc global IUIAutomationWindowPattern_get_CachedIsTopmost 15 sptr #comfunc global IUIAutomationWindowPattern_get_CachedWindowVisualState 16 sptr #comfunc global IUIAutomationWindowPattern_get_CachedWindowInteractionState 17 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。