ITfLangBarItemButton interface (ctfutb.h)

The ITfLangBarItemButton interface is implemented by a language bar button provider and used by the language bar manager to obtain information about a button item on the language bar.

The language bar manager obtains an instance of this interface by calling QueryInterface on the ITfLangBarItem passed to ITfLangBarItemMgr::AddItem.

Inheritance

The ITfLangBarItemButton interface inherits from the IUnknown interface. ITfLangBarItemButton also has these types of members:

Methods

The ITfLangBarItemButton interface has these methods.

 
ITfLangBarItemButton::GetIcon

ITfLangBarItemButton::GetIcon method
ITfLangBarItemButton::GetText

ITfLangBarItemButton::GetText method
ITfLangBarItemButton::InitMenu

This method is not used if the button item does not have the TF_LBI_STYLE_BTN_MENU style. (ITfLangBarItemButton.InitMenu)
ITfLangBarItemButton::OnClick

This method is not used if the button item does not have the TF_LBI_STYLE_BTN_BUTTON style. (ITfLangBarItemButton.OnClick)
ITfLangBarItemButton::OnMenuSelect

This method is not used if the button item does not have the TF_LBI_STYLE_BTN_MENU style. (ITfLangBarItemButton.OnMenuSelect)

Remarks

A language bar button functions as a pushbutton, toggle button, or a menu on the language bar.

If the button has the TF_LBI_STYLE_BTN_BUTTON style, the button acts as a pushbutton that the user can click with the mouse. When the user clicks the button, ITfLangBarItemButton::OnClick is called. ITfLangBarItemButton::InitMenu and ITfLangBarItemButton::OnMenuSelect are not used.

If the button has the TF_LBI_STYLE_BTN_TOGGLE style, the button functions similar to a check box that the user can select or deselect with the mouse. When the user clicks the button, ITfLangBarItemButton::OnClick is called. ITfLangBarItemButton::InitMenu and ITfLangBarItemButton::OnMenuSelect are not used.

If the button has the TF_LBI_STYLE_BTN_MENU style, the button acts like a top-level menu item. When the user clicks the button, ITfLangBarItemButton::InitMenu is called. If the user selects an item in the menu, ITfLangBarItemButton::OnMenuSelect is called. ITfLangBarItemButton::OnClick is not used.

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
Redistributable TSF 1.0 on Windows 2000 Professional