ITfTextEditSink::OnEndEdit method (msctf.h)
Receives a notification upon completion of an ITfEditSession::DoEditSession method that has read/write access to the context.
HRESULT OnEndEdit( [in] ITfContext *pic, [in] TfEditCookie ecReadOnly, [in] ITfEditRecord *pEditRecord );
Pointer to the ITfContext interface for the edited context.
Specifies a TfEditCookie value for read-only access to the context.
Pointer to the ITfEditRecord interface used to access the modifications to the context.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
An edit session with read/write access is requested with a call to the ITfContext::RequestEditSession method using the TF_ES_READWRITE flag, which establishes an ITfEditSession::DoEditSession method to perform the session. When such a ITfEditSession::DoEditSession method completes, TSF calls this method.
A text service can use the ecReadOnly parameter only to view the context. If changes are required, the text service must use an asynchronous call to the ITfContext::RequestEditSession method. However, a text service should modify only text that it previously entered as part of a composition. Otherwise, two or more text services could repeatedly modify the same text. A text service can use the ITfContext::InWriteSession method to determine if it performed the completed edit session.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Redistributable||TSF 1.0 on Windows 2000 Professional|