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

IUIAutomationEventHandlerGroup

COM
IIDc9ee12f2-c13b-4408-997c-639914377f4e継承元IUnknown自前メソッド開始 vtbl3

メソッド 7

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

vtbl 3 HRESULT AddActiveTextPositionChangedEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationActiveTextPositionChangedEventHandler* handler)
scopeTreeScopeinイベントを購読する範囲を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationActiveTextPositionChangedEventHandler*inアクティブテキスト位置変更イベントを受け取るハンドラーを指定する。
vtbl 4 HRESULT AddAutomationEventHandler(UIA_EVENT_ID eventId, TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationEventHandler* handler)
eventIdUIA_EVENT_IDin購読するオートメーションイベントの ID を指定する。
scopeTreeScopeinイベントを購読する範囲を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationEventHandler*inイベントを受け取るハンドラーを指定する。
vtbl 5 HRESULT AddChangesEventHandler(TreeScope scope, INT* changeTypes, INT changesCount, IUIAutomationCacheRequest* cacheRequest, IUIAutomationChangesEventHandler* handler)
scopeTreeScopeinイベントを購読する範囲を指定する。
changeTypesINT*in購読する変更種別 ID の配列を指定する。
changesCountINTinchangeTypes 配列の要素数を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationChangesEventHandler*in変更イベントを受け取るハンドラーを指定する。
vtbl 6 HRESULT AddNotificationEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationNotificationEventHandler* handler)
scopeTreeScopeinイベントを購読する範囲を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationNotificationEventHandler*in通知イベントを受け取るハンドラーを指定する。
vtbl 7 HRESULT AddPropertyChangedEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationPropertyChangedEventHandler* handler, UIA_PROPERTY_ID* propertyArray, INT propertyCount)
scopeTreeScopeinイベントを購読する範囲を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationPropertyChangedEventHandler*inプロパティ変更イベントを受け取るハンドラーを指定する。
propertyArrayUIA_PROPERTY_ID*in監視するプロパティの ID の配列を指定する。
propertyCountINTinpropertyArray 配列の要素数を指定する。
vtbl 8 HRESULT AddStructureChangedEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationStructureChangedEventHandler* handler)
scopeTreeScopeinイベントを購読する範囲を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationStructureChangedEventHandler*in構造変更イベントを受け取るハンドラーを指定する。
vtbl 9 HRESULT AddTextEditTextChangedEventHandler(TreeScope scope, TextEditChangeType textEditChangeType, IUIAutomationCacheRequest* cacheRequest, IUIAutomationTextEditTextChangedEventHandler* handler)
scopeTreeScopeinイベントを購読する範囲を指定する。
textEditChangeTypeTextEditChangeTypein購読するテキスト編集変更の種別を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationTextEditTextChangedEventHandler*inテキスト編集変更イベントを受け取るハンドラーを指定する。

HSP用 COM定義

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

出力引数:
#define global IID_IUIAutomationEventHandlerGroup "{C9EE12F2-C13B-4408-997C-639914377F4E}"
#usecom global IUIAutomationEventHandlerGroup IID_IUIAutomationEventHandlerGroup "{}"
#comfunc global IUIAutomationEventHandlerGroup_AddActiveTextPositionChangedEventHandler  3 int,sptr,sptr
#comfunc global IUIAutomationEventHandlerGroup_AddAutomationEventHandler                 4 int,int,sptr,sptr
#comfunc global IUIAutomationEventHandlerGroup_AddChangesEventHandler                    5 int,var,int,sptr,sptr
#comfunc global IUIAutomationEventHandlerGroup_AddNotificationEventHandler               6 int,sptr,sptr
#comfunc global IUIAutomationEventHandlerGroup_AddPropertyChangedEventHandler            7 int,sptr,sptr,var,int
#comfunc global IUIAutomationEventHandlerGroup_AddStructureChangedEventHandler           8 int,sptr,sptr
#comfunc global IUIAutomationEventHandlerGroup_AddTextEditTextChangedEventHandler        9 int,int,sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。