Windows Dev Center

ITfActiveLanguageProfileNotifySink interface

The ITfActiveLanguageProfileNotifySink interface is implemented by an application to receive a notification when the active language or text service changes.

To install the advise sink, obtain an ITfSource object from an ITfThreadMgr object by calling ITfThreadMgr::QueryInterface with IID_ITfActiveLanguageProfileNotifySink. Then call ITfSource::AdviseSink with IID_ITfActiveLanguageProfileNotifySink.

Members

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

Methods

The ITfActiveLanguageProfileNotifySink interface has these methods.

MethodDescription
OnActivated

Called when the active language or text service changes.

 

Examples

ITfSourceITfThreadMgrITfActiveLanguageProfileNotifySink



HRESULT     hr;
ITfSource   *pSource;

hr = m_pThreadMgr->QueryInterface(IID_ITfSource, 
        (LPVOID*)&pSource);
if(SUCCEEDED(hr))
{
    hr = pSource->AdviseSink(IID_ITfActiveLanguageProfileNotifySink, 
            (ITfActiveLanguageProfileNotifySink*)this,
            &m_dwCookie);

    pSource->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

Msctf.h

IDL

Msctf.idl

DLL

Imekrcic.dll

See also

IUnknown
ITfSource
ITfThreadMgr
ITfSource::AdviseSink

 

 

Community Additions

ADD
Show:
© 2015 Microsoft