ホーム › Web.MsHtml › IHTMLTable4
IHTMLTable4
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 9
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT putref_tHead(IHTMLTableSection* v)
| v | IHTMLTableSection* | in | テーブルヘッダー(thead)セクションへの参照を設定するポインタである。 |
vtbl 8 HRESULT get_tHead(IHTMLTableSection** p)
| p | IHTMLTableSection** | out | テーブルヘッダー(thead)セクションを受け取るポインタである。存在しない場合は NULL を受け取る。 |
vtbl 9 HRESULT putref_tFoot(IHTMLTableSection* v)
| v | IHTMLTableSection* | in | テーブルフッター(tfoot)セクションへの参照を設定するポインタである。 |
vtbl 10 HRESULT get_tFoot(IHTMLTableSection** p)
| p | IHTMLTableSection** | out | テーブルフッター(tfoot)セクションを受け取るポインタである。存在しない場合は NULL を受け取る。 |
vtbl 11 HRESULT putref_caption(IHTMLTableCaption* v)
| v | IHTMLTableCaption* | in | テーブルキャプション(caption)要素への参照を設定するポインタである。 |
vtbl 12 HRESULT get_caption(IHTMLTableCaption** p)
| p | IHTMLTableCaption** | out | テーブルキャプション(caption)要素を受け取るポインタである。存在しない場合は NULL を受け取る。 |
| index | INT | in | 新しい行を挿入する位置を指定する。-1 を指定すると末尾に追加する。 |
| row | IDispatch** | out | 作成された行要素を受け取る IDispatch ポインタである。 |
| index | INT | in | 削除する行のインデックスを指定する。 |
vtbl 15 HRESULT createTBody(IHTMLTableSection** tbody)
| tbody | IHTMLTableSection** | out | 新しく作成されたテーブルボディ(tbody)セクションを受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
#define global IID_IHTMLTable4 "{305106C2-98B5-11CF-BB82-00AA00BDCE0B}"
#usecom global IHTMLTable4 IID_IHTMLTable4 "{3050F26B-98B5-11CF-BB82-00AA00BDCE0B}"
#comfunc global IHTMLTable4_putref_tHead 7 sptr
#comfunc global IHTMLTable4_get_tHead 8 sptr
#comfunc global IHTMLTable4_putref_tFoot 9 sptr
#comfunc global IHTMLTable4_get_tFoot 10 sptr
#comfunc global IHTMLTable4_putref_caption 11 sptr
#comfunc global IHTMLTable4_get_caption 12 sptr
#comfunc global IHTMLTable4_insertRow 13 int,sptr
#comfunc global IHTMLTable4_deleteRow 14 int
#comfunc global IHTMLTable4_createTBody 15 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。