Export (0) Print
Expand All

ITfCompartmentEventSink interface

The ITfCompartmentEventSink interface is implemented by a client (application or text service) and used by the TSF manager to notify the client when compartment data changes. This notification sink is installed by obtaining an ITfSource interface from the ITfCompartment object and calling ITfSource::AdviseSink with IID_ITfCompartmentEventSink and a pointer to the ITfCompartmentEventSink object.

Members

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

Methods

The ITfCompartmentEventSink interface has these methods.

MethodDescription
OnChange

Called when compartment data changes.

 

Examples

ITfSourceITfCompartmentITfCompartmentEventSink



HRESULT     hr;
ITfSource   *pSource;

hr = m_pCompartment->QueryInterface(IID_ITfSource,
        (LPVOID*)&pSource);
if(SUCCEEDED(hr))
{
    hr = pSource->AdviseSink(IID_ITfCompartmentEventSink,
            (ITfCompartmentEventSink*)this,
            &m_dwCookie);

    pSource->Release();
}


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Msctf.h

IDL

Msctf.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft