Export (0) Print
Expand All

ITfLangBarItemMgr interface

The ITfLangBarItemMgr interface is implemented by the language bar and used by a text service to manage items in the language bar.

A text service obtains an instance of this interface by calling ITfThreadMgr::QueryInterface with IID_ITfLangBarItemMgr. An instance of this interface can also be created by calling CoCreateInstance with CLSID_TF_LangBarItemMgr.

Members

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

Methods

The ITfLangBarItemMgr interface has these methods.

MethodDescription
AddItem

Adds an item to the language bar.

AdviseItemSink

Installs a language bar item event sink for a language bar item.

AdviseItemsSink

Installs one or more language bar item event sinks for one or more language bar items.

EnumItems

Obtains an enumerator that contains the items in the language bar.

GetItem

Obtains the ITfLangBarItem interface for an item in the language bar.

GetItemFloatingRect

Obtains the bounding rectangle of an item on the language bar.

GetItemNum

Obtains the number of items in the language bar.

GetItems

Obtains the interface, information and status for one or more items in the language bar.

GetItemsStatus

Obtains the status of one or more items on the language bar.

RemoveItem

Removes an item from the language bar.

UnadviseItemSink

Removes a language bar item event sink.

UnadviseItemsSink

Removes one or more language bar item event sinks.

 

Examples



HRESULT             hr;
ITfLangBarItemMgr   *pLangBarItemMgr;

hr = pThreadMgr->QueryInterface(IID_ITfLangBarItemMgr, (LPVOID*)&pLangBarItemMgr);
if(SUCCEEDED(hr))
{
    //Use the interface. 
    
    //Release the interface. 
    pLangBarItemMgr->Release();
}


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

CoCreateInstance
ITfLangBarItem

 

 

Community Additions

ADD
Show:
© 2014 Microsoft