ホーム › UI.Accessibility › IUIAutomationEventHandlerGroup
IUIAutomationEventHandlerGroup
COMメソッド 7
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT AddActiveTextPositionChangedEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationActiveTextPositionChangedEventHandler* handler)
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationActiveTextPositionChangedEventHandler* | in | アクティブテキスト位置変更イベントを受け取るハンドラーを指定する。 |
vtbl 4 HRESULT AddAutomationEventHandler(UIA_EVENT_ID eventId, TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationEventHandler* handler)
| eventId | UIA_EVENT_ID | in | 購読するオートメーションイベントの ID を指定する。 |
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationEventHandler* | in | イベントを受け取るハンドラーを指定する。 |
vtbl 5 HRESULT AddChangesEventHandler(TreeScope scope, INT* changeTypes, INT changesCount, IUIAutomationCacheRequest* cacheRequest, IUIAutomationChangesEventHandler* handler)
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| changeTypes | INT* | in | 購読する変更種別 ID の配列を指定する。 |
| changesCount | INT | in | changeTypes 配列の要素数を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationChangesEventHandler* | in | 変更イベントを受け取るハンドラーを指定する。 |
vtbl 6 HRESULT AddNotificationEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationNotificationEventHandler* handler)
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationNotificationEventHandler* | in | 通知イベントを受け取るハンドラーを指定する。 |
vtbl 7 HRESULT AddPropertyChangedEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationPropertyChangedEventHandler* handler, UIA_PROPERTY_ID* propertyArray, INT propertyCount)
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationPropertyChangedEventHandler* | in | プロパティ変更イベントを受け取るハンドラーを指定する。 |
| propertyArray | UIA_PROPERTY_ID* | in | 監視するプロパティの ID の配列を指定する。 |
| propertyCount | INT | in | propertyArray 配列の要素数を指定する。 |
vtbl 8 HRESULT AddStructureChangedEventHandler(TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationStructureChangedEventHandler* handler)
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationStructureChangedEventHandler* | in | 構造変更イベントを受け取るハンドラーを指定する。 |
vtbl 9 HRESULT AddTextEditTextChangedEventHandler(TreeScope scope, TextEditChangeType textEditChangeType, IUIAutomationCacheRequest* cacheRequest, IUIAutomationTextEditTextChangedEventHandler* handler)
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| textEditChangeType | TextEditChangeType | in | 購読するテキスト編集変更の種別を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationTextEditTextChangedEventHandler* | 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 指定が可能。#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,sptr,int,sptr,sptr #comfunc global IUIAutomationEventHandlerGroup_AddNotificationEventHandler 6 int,sptr,sptr #comfunc global IUIAutomationEventHandlerGroup_AddPropertyChangedEventHandler 7 int,sptr,sptr,sptr,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が無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。