Export (0) Print
Expand All

ITfLangBarItemBitmapButton interface

The ITfLangBarItemBitmapButton interface is implemented by a language bar bitmap button provider and is used by the language bar manager to obtain information specific to a bitmap 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 with IID_ITfLangBarItemBitmapButton.

Members

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

Methods

The ITfLangBarItemBitmapButton interface has these methods.

MethodDescription
DrawBitmap

Obtains the bitmap and mask for the bitmap button item.

GetPreferredSize

Obtains the preferred size, in pixels, of the bitmap.

GetText

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

InitMenu

Called to enable a language bar bitmap 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 a language bar bitmap 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 bitmap button functions as a button item on the language bar that displays text and a small bitmap. The bitmap displayed for the item should not be larger than the size of a small icon. Obtain these dimensions by calling GetSystemMetrics with SM_CXSMICON for the width and SM_CYSMICON for the height.

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

See also

GetSystemMetrics
ITfLangBarItem
ITfLangBarItemMgr::AddItem

 

 

Community Additions

ADD
Show:
© 2014 Microsoft