ホーム › UI.TextServices › ITfReadOnlyProperty
ITfReadOnlyProperty
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetType(GUID* pguid)
| pguid | GUID* | out | このプロパティの種類を識別する GUID を受け取るポインタである。 |
vtbl 4 HRESULT EnumRanges(DWORD ec, IEnumTfRanges** ppEnum, ITfRange* pTargetRange)
| ec | DWORD | in | 読み取りアクセスが許可された編集クッキーを指定する。 |
| ppEnum | IEnumTfRanges** | out | このプロパティ値を持つテキスト範囲を列挙する IEnumTfRanges インターフェイスを受け取るポインタである。 |
| pTargetRange | ITfRange* | in | 列挙対象を限定するテキスト範囲を示す ITfRange へのポインタである。 |
| ec | DWORD | in | 読み取りアクセスが許可された編集クッキーを指定する。 |
| pRange | ITfRange* | in | プロパティ値を取得する対象のテキスト範囲を示す ITfRange へのポインタである。 |
| pvarValue | VARIANT* | out | 取得したプロパティ値を受け取る VARIANT へのポインタである。 |
vtbl 6 HRESULT GetContext(ITfContext** ppContext)
| ppContext | ITfContext** | out | このプロパティが属するコンテキストを表す ITfContext インターフェイスを受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITfReadOnlyProperty "{17D49A3D-F8B8-4B2F-B254-52319DD64C53}" #usecom global ITfReadOnlyProperty IID_ITfReadOnlyProperty "{}" #comfunc global ITfReadOnlyProperty_GetType 3 var #comfunc global ITfReadOnlyProperty_EnumRanges 4 int,sptr,sptr #comfunc global ITfReadOnlyProperty_GetValue 5 int,sptr,var #comfunc global ITfReadOnlyProperty_GetContext 6 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITfReadOnlyProperty "{17D49A3D-F8B8-4B2F-B254-52319DD64C53}" #usecom global ITfReadOnlyProperty IID_ITfReadOnlyProperty "{}" #comfunc global ITfReadOnlyProperty_GetType 3 sptr #comfunc global ITfReadOnlyProperty_EnumRanges 4 int,sptr,sptr #comfunc global ITfReadOnlyProperty_GetValue 5 int,sptr,sptr #comfunc global ITfReadOnlyProperty_GetContext 6 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。