ICoreWebView2CompositionController4
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 16 HRESULT GetNonClientRegionAtPoint(POINT point, COREWEBVIEW2_NON_CLIENT_REGION_KIND* value)
| point | POINT | in | 判定対象となる位置を指定する POINT である。 |
| value | COREWEBVIEW2_NON_CLIENT_REGION_KIND* | out | 指定位置における非クライアント領域の種別を示す COREWEBVIEW2_NON_CLIENT_REGION_KIND 値を受け取るポインタである。 |
vtbl 17 HRESULT QueryNonClientRegion(COREWEBVIEW2_NON_CLIENT_REGION_KIND kind, ICoreWebView2RegionRectCollectionView** rects)
| kind | COREWEBVIEW2_NON_CLIENT_REGION_KIND | in | 問い合わせ対象の非クライアント領域の種別を示す COREWEBVIEW2_NON_CLIENT_REGION_KIND 値を指定する。 |
| rects | ICoreWebView2RegionRectCollectionView** | out | 指定種別に該当する矩形領域の一覧を保持する ICoreWebView2RegionRectCollectionView を受け取るポインタである。 |
vtbl 18 HRESULT add_NonClientRegionChanged(ICoreWebView2NonClientRegionChangedEventHandler* eventHandler, EventRegistrationToken* token)
| eventHandler | ICoreWebView2NonClientRegionChangedEventHandler* | in | 非クライアント領域の変更イベントを受け取る ICoreWebView2NonClientRegionChangedEventHandler へのポインタである。 |
| token | EventRegistrationToken* | out | 登録解除に使用するイベント登録トークンを受け取る EventRegistrationToken へのポインタである。 |
vtbl 19 HRESULT remove_NonClientRegionChanged(EventRegistrationToken token)
| token | EventRegistrationToken | in | add_NonClientRegionChanged で取得した、登録解除対象のイベント登録トークンを指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。WebView2 のインターフェースは環境/ローダ経由で取得するため #usecom 末尾は "{}"。
出力引数:
#define global IID_ICoreWebView2CompositionController4 "{7C367B9B-3D2B-450F-9E58-D61A20F486AA}" #usecom global ICoreWebView2CompositionController4 IID_ICoreWebView2CompositionController4 "{}" #comfunc global ICoreWebView2CompositionController4_GetNonClientRegionAtPoint 16 int,var #comfunc global ICoreWebView2CompositionController4_QueryNonClientRegion 17 int,sptr #comfunc global ICoreWebView2CompositionController4_add_NonClientRegionChanged 18 sptr,var #comfunc global ICoreWebView2CompositionController4_remove_NonClientRegionChanged 19 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICoreWebView2CompositionController4 "{7C367B9B-3D2B-450F-9E58-D61A20F486AA}" #usecom global ICoreWebView2CompositionController4 IID_ICoreWebView2CompositionController4 "{}" #comfunc global ICoreWebView2CompositionController4_GetNonClientRegionAtPoint 16 int,sptr #comfunc global ICoreWebView2CompositionController4_QueryNonClientRegion 17 int,sptr #comfunc global ICoreWebView2CompositionController4_add_NonClientRegionChanged 18 sptr,sptr #comfunc global ICoreWebView2CompositionController4_remove_NonClientRegionChanged 19 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。