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.
| Value | Description |
|---|---|
|
The method was successful. |
|
This value results when:
|
|
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 |
|
|
IDL |
|
|
DLL |
|
See also
- ITfEditSession::DoEditSession
- ITfComposition
- ITFContextOwnerCompositionServices::TerminateComposition