Win32 API 日本語リファレンス
ホームUI.Accessibility › IUIAutomation3

IUIAutomation3

COM
IID73d768da-9b51-4b89-936e-c209290973e7継承元IUIAutomation2自前メソッド開始 vtbl64

メソッド 2

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 64 HRESULT AddTextEditTextChangedEventHandler(IUIAutomationElement* element, TreeScope scope, TextEditChangeType textEditChangeType, IUIAutomationCacheRequest* cacheRequest, IUIAutomationTextEditTextChangedEventHandler* handler)
elementIUIAutomationElement*inイベント購読の起点とする要素を指定する。
scopeTreeScopeinイベントを購読する範囲を指定する。
textEditChangeTypeTextEditChangeTypein購読するテキスト編集変更の種別を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationTextEditTextChangedEventHandler*inテキスト編集変更イベントを受け取るハンドラーを指定する。
vtbl 65 HRESULT RemoveTextEditTextChangedEventHandler(IUIAutomationElement* element, IUIAutomationTextEditTextChangedEventHandler* handler)
elementIUIAutomationElement*inハンドラー登録時に指定した要素を指定する。
handlerIUIAutomationTextEditTextChangedEventHandler*in登録解除するハンドラーを指定する。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

#define global IID_IUIAutomation3 "{73D768DA-9B51-4B89-936E-C209290973E7}"
#usecom global IUIAutomation3 IID_IUIAutomation3 "{}"
#comfunc global IUIAutomation3_AddTextEditTextChangedEventHandler     64 sptr,int,int,sptr,sptr
#comfunc global IUIAutomation3_RemoveTextEditTextChangedEventHandler  65 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。