Export (0) Print
Expand All

ITfLangBarItemSink interface

The ITfLangBarItemSink interface is implemented by the language bar and used by a language bar item provider to notify the language bar of changes to a language bar item.

The language bar item provider obtains an instance of this interface when the language bar calls the provider's ITfSource::AdviseSink with identifier IID_ITfLangBarItemSink.

Members

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

Methods

The ITfLangBarItemSink interface has these methods.

MethodDescription
OnUpdate

Notifies the language bar of a change in a language bar item.

 

Examples

ITfSource::AdviseSink



HRESULT hr;
ITfSource *pSource;
ITfLangBarItem *pItem;
ITfLangBarItemSink *pLBISink;

hr = pItem->QueryInterface(IID_ITfSource,
                           (void**)&pSource);
if(SUCCEEDED(hr))
{
    hr = pSource->AdviseSink(IID_ITfLangBarItemSink,
                             pLBISink,
                             pdwCookie);
    if(SUCCEEDED(hr))
    {
        // Use the ITfLangBarItemSink interface 

        pLBISink->Release();
    }
    pSource->Release();
}
pItem->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

ITfSource::AdviseSink

 

 

Community Additions

ADD
Show:
© 2014 Microsoft