ホーム › Web.MsHtml › ISelectionServicesListener
ISelectionServicesListener
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT BeginSelectionUndo()
vtbl 4 HRESULT EndSelectionUndo()
vtbl 5 HRESULT OnSelectedElementExit(IMarkupPointer* pIElementStart, IMarkupPointer* pIElementEnd, IMarkupPointer* pIElementContentStart, IMarkupPointer* pIElementContentEnd)
| pIElementStart | IMarkupPointer* | in | 終了する選択要素の開始位置を示す IMarkupPointer へのポインタである。 |
| pIElementEnd | IMarkupPointer* | in | 終了する選択要素の終了位置を示す IMarkupPointer へのポインタである。 |
| pIElementContentStart | IMarkupPointer* | in | 選択要素の内容部分の開始位置を示す IMarkupPointer へのポインタである。 |
| pIElementContentEnd | IMarkupPointer* | in | 選択要素の内容部分の終了位置を示す IMarkupPointer へのポインタである。 |
vtbl 6 HRESULT OnChangeType(SELECTION_TYPE eType, ISelectionServicesListener* pIListener)
| eType | SELECTION_TYPE | in | 新しい選択の種別を指定する SELECTION_TYPE である。 |
| pIListener | ISelectionServicesListener* | in | 変更後の選択に関連付けるリスナーを指定する ISelectionServicesListener へのポインタである。 |
| pTypeDetail | LPWSTR* | out | 選択種別の詳細を表す文字列を受け取るポインタである。呼び出し側で SysFreeString により解放する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISelectionServicesListener "{3050F699-98B5-11CF-BB82-00AA00BDCE0B}" #usecom global ISelectionServicesListener IID_ISelectionServicesListener "{}" #comfunc global ISelectionServicesListener_BeginSelectionUndo 3 #comfunc global ISelectionServicesListener_EndSelectionUndo 4 #comfunc global ISelectionServicesListener_OnSelectedElementExit 5 sptr,sptr,sptr,sptr #comfunc global ISelectionServicesListener_OnChangeType 6 int,sptr #comfunc global ISelectionServicesListener_GetTypeDetail 7 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ISelectionServicesListener "{3050F699-98B5-11CF-BB82-00AA00BDCE0B}" #usecom global ISelectionServicesListener IID_ISelectionServicesListener "{}" #comfunc global ISelectionServicesListener_BeginSelectionUndo 3 #comfunc global ISelectionServicesListener_EndSelectionUndo 4 #comfunc global ISelectionServicesListener_OnSelectedElementExit 5 sptr,sptr,sptr,sptr #comfunc global ISelectionServicesListener_OnChangeType 6 int,sptr #comfunc global ISelectionServicesListener_GetTypeDetail 7 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。