ICoreWebView2Environment9
COMメソッド 1
vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 19 HRESULT CreateContextMenuItem(LPWSTR Label, IStream* iconStream, COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND Kind, ICoreWebView2ContextMenuItem** value)
| Label | LPWSTR | in | コンテキストメニュー項目に表示するラベル文字列を指定する。 |
| iconStream | IStream* | in | メニュー項目に表示するアイコン画像を含むストリームへのポインタである。アイコンを使用しない場合は NULL を指定できる。 |
| Kind | COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND | in | コマンド・チェックボックス・区切り線など、作成するメニュー項目の種類を指定する。 |
| value | ICoreWebView2ContextMenuItem** | out | 新しく作成された ICoreWebView2ContextMenuItem を受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。WebView2 のインターフェースは環境/ローダ経由で取得するため #usecom 末尾は "{}"。
#define global IID_ICoreWebView2Environment9 "{F06F41BF-4B5A-49D8-B9F6-FA16CD29F274}"
#usecom global ICoreWebView2Environment9 IID_ICoreWebView2Environment9 "{}"
#comfunc global ICoreWebView2Environment9_CreateContextMenuItem 19 wstr,sptr,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。関連項目
バージョン違い・関連インターフェース
- i ICoreWebView2Environment
- i ICoreWebView2Environment2
- i ICoreWebView2Environment3
- i ICoreWebView2Environment4
- i ICoreWebView2Environment5
- i ICoreWebView2Environment6
- i ICoreWebView2Environment7
- i ICoreWebView2Environment8
- i ICoreWebView2Environment10
- i ICoreWebView2Environment11
- i ICoreWebView2Environment12
- i ICoreWebView2Environment13
- i ICoreWebView2Environment14
- i ICoreWebView2Environment15