Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITfContextOwnerCompositionSink::OnUpdateComposition method

Syntax


HRESULT OnUpdateComposition(
  [in] ITfCompositionView *pComposition,
  [in] ITfRange           *pRangeNew
);

Parameters

pComposition [in]

Pointer to an ITfCompositionView object that represents the composition updated.

pRangeNew [in]

Pointer to an ITfRange object that contains the range of text the composition will cover after the composition is updated.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

To determine what has changed within the composition, compare pRangeNew with the range returned from ITfCompositionView::GetRange. The range returned by ITfCompositionView::GetRange is not updated until after ITfContextOwnerCompositionSink::OnUpdateComposition returns.

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

DLL

Msimtf.dll

See also

ITfContextOwnerCompositionSink
ITfCompositionView
ITfRange
ITfCompositionView::GetRange

 

 

Show:
© 2017 Microsoft