ITfFnAdviseText::OnTextUpdate method (ctffunc.h)

Called when the text within a context changes.

Syntax

HRESULT OnTextUpdate(
  [in] ITfRange    *pRange,
  [in] const WCHAR *pchText,
  [in] LONG        cch
);

Parameters

[in] pRange

Pointer to an ITfRange object that represents the range of text that has changed.

[in] pchText

Pointer to a WCHAR buffer that contains the new text for the range.

[in] cch

Specifies the number of characters contained in pchText.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_INVALIDARG
One or more parameters are invalid.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ctffunc.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

ITfFnAdviseText

ITfRange