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.

ITfComposition::EndComposition method

Syntax


HRESULT EndComposition(
  [in] TfEditCookie ecWrite
);

Parameters

ecWrite [in]

Contains an edit cookie that identifies the edit context obtained from ITfEditSession::DoEditSession.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_UNEXPECTED

This value results when:

  • The composition terminated.
  • The caller is inside another composition write operation.
  • The caller does not own the composition.
TF_E_NOLOCK

The edit context identified by ecWrite does not have a read/write lock.

 

Remarks

This method does not release the composition object, but the ITfComposition methods will fail with E_UNEXPECTED after this method is called.

Context owners should use the ITFContextOwnerCompositionServices::TerminateComposition method to terminate a composition.

This method causes the GUID_PROP_COMPOSING property to be removed from the text covered by the composition.

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

Msctf.dll

See also

ITfEditSession::DoEditSession
ITfComposition
ITFContextOwnerCompositionServices::TerminateComposition

 

 

Show:
© 2017 Microsoft