ITfLangBarItemButton::GetText method (ctfutb.h)

Obtains the text to be displayed for the button in the language bar.

Syntax

HRESULT GetText(
  [out] BSTR *pbstrText
);

Parameters

[out] pbstrText

Pointer to a BSTR that receives the string for the language bar item. This string must be allocated using the SysAllocString function. The caller must free this buffer when it is no longer required by calling SysFreeString.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_INVALIDARG
pbstrText is invalid.
E_OUTOFMEMORY
A memory allocation failure occurred.

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 ctfutb.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

ITfLangBarItemButton

SysAllocString

SysFreeString