TF_LBI_STYLE_* Constants

The TF_LBI_STYLE_* constants are used in the dwStyle member of the TF_LANGBARITEMINFO structure to specify the style of a language bar item.

If this style is combined with TF_LBI_STYLE_BTN_BUTTON, a drop-down arrow will be displayed for the item in addition to the text. The drop-down arrow functions as the menu button and clicking it will cause ITfLangBarItemButton::InitMenu to be called. Clicking the text portion of the button will cause ITfLangBarItemButton::OnClick to be called.

Constant/value Description
TF_LBI_STYLE_HIDDENSTATUSCONTROL
0x00000001
The item can be hidden or shown dynamically using the TF_LBI_STATUS_HIDDEN value in the ITfLangBarItem::GetStatus method. If this value is not present, the item cannot be hidden in this manner.
TF_LBI_STYLE_SHOWNINTRAY
0x00000002
The item will be displayed in the notification icon tray in addition to the language bar. This flag is not currently supported.
TF_LBI_STYLE_HIDEONNOOTHERITEMS
0x00000004
The language bar is hidden if all items in the language bar contain this style. If any item in the language bar does not contain this style, the language bar is displayed.
TF_LBI_STYLE_SHOWNINTRAYONLY
0x00000008
The item will only be displayed in the notification icon tray and not in the language bar. This flag is not currently supported.
TF_LBI_STYLE_HIDDENBYDEFAULT
0x00000010
The item is not displayed in the toolbar until it is selected from the language bar options menu. This flag is ignored if the TF_LBI_STYLE_HIDDENSTATUSCONTROL is set or the user has already changed the hidden/shown state using the language bar options menu.
TF_LBI_STYLE_TEXTCOLORICON
0x00000020
Any black pixel within the icon will be converted to the text color of the selected theme. The icon must be monochrome.
TF_LBI_STYLE_BTN_BUTTON
0x00010000
The item is a push button. ITfLangBarItemButton::OnClick is called when the item is pressed.
TF_LBI_STYLE_BTN_MENU
0x00020000
The item is a menu. ITfLangBarItemButton::InitMenu is called when the item is pressed.
If this style is combined with TF_LBI_STYLE_BTN_BUTTON, a drop-down arrow will be displayed for the item in addition to the text. The drop-down arrow functions as the menu button and clicking it will cause ITfLangBarItemButton::InitMenu to be called. Clicking the text portion of the button will cause ITfLangBarItemButton::OnClick to be called.
TF_LBI_STYLE_BTN_TOGGLE
0x00040000
The item is a toggle button and operates similar to a check box. ITfLangBarItemButton::OnClick is called when the item is pressed.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Redistributable
TSF 1.0 on Windows 2000 Professional
Header
Ctfutb.h
IDL
Ctfutb.idl

See also

TF_LANGBARITEMINFO

ITfLangBarItem::GetInfo

ITfLangBarItem::GetStatus