ITfReadingInformationUIElement
COMIIDea1ea139-19df-11d7-a6d2-00065b84435c継承元ITfUIElement自前メソッド開始 vtbl7
メソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| pdwFlags | DWORD* | out | 読み情報のどの部分が更新されたかを示すフラグ (TF_RIUIE_*) を受け取る。 |
| ppic | ITfContext** | out | この読み情報に関連付けられたコンテキスト ITfContext へのポインタを受け取る。 |
| pstr | LPWSTR* | out | 現在の読み文字列を受け取る。CoTaskMemFree で解放する必要がある。 |
| pcchMax | DWORD* | out | 読み文字列の最大長 (文字数) を受け取る。 |
| pErrorIndex | DWORD* | out | 読み文字列内でエラーが発生した位置のインデックスを受け取る。 |
vtbl 12 HRESULT IsVerticalOrderPreferred(BOOL* pfVertical) | pfVertical | BOOL* | out | 読み情報の縦書き表示が推奨される場合に TRUE を受け取る。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITfReadingInformationUIElement "{EA1EA139-19DF-11D7-A6D2-00065B84435C}"
#usecom global ITfReadingInformationUIElement IID_ITfReadingInformationUIElement "{}"
#comfunc global ITfReadingInformationUIElement_GetUpdatedFlags 7 var
#comfunc global ITfReadingInformationUIElement_GetContext 8 sptr
#comfunc global ITfReadingInformationUIElement_GetString 9 var
#comfunc global ITfReadingInformationUIElement_GetMaxReadingStringLength 10 var
#comfunc global ITfReadingInformationUIElement_GetErrorIndex 11 var
#comfunc global ITfReadingInformationUIElement_IsVerticalOrderPreferred 12 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITfReadingInformationUIElement "{EA1EA139-19DF-11D7-A6D2-00065B84435C}"
#usecom global ITfReadingInformationUIElement IID_ITfReadingInformationUIElement "{}"
#comfunc global ITfReadingInformationUIElement_GetUpdatedFlags 7 sptr
#comfunc global ITfReadingInformationUIElement_GetContext 8 sptr
#comfunc global ITfReadingInformationUIElement_GetString 9 sptr
#comfunc global ITfReadingInformationUIElement_GetMaxReadingStringLength 10 sptr
#comfunc global ITfReadingInformationUIElement_GetErrorIndex 11 sptr
#comfunc global ITfReadingInformationUIElement_IsVerticalOrderPreferred 12 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。