Export (0) Print
Expand All

ITfLangBarItemButton interface

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.

Members

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

Methods

The ITfLangBarItemButton interface has these methods.

MethodDescription
GetIcon

Obtains the icon to be displayed for the language bar button.

GetText

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

InitMenu

Called to allow a language bar button that has the TF_LBI_STYLE_BTN_MENU style to add items to the menu that the language bar will display for the button.

OnClick

Called when the user clicks the mouse on a language bar button that has the TF_LBI_STYLE_BTN_BUTTON or TF_LBI_STYLE_BTN_TOGGLE style.

OnMenuSelect

Called when the user selects an item in the menu that the language bar displays for the button.

 

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

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

DLL

Msctf.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft