ITfCleanupContextSink::OnCleanupContext 方法 (msctf.h)

在內容清除作業期間呼叫。

語法

HRESULT OnCleanupContext(
  [in] TfEditCookie ecWrite,
  [in] ITfContext   *pic
);

參數

[in] ecWrite

包含識別已清除編輯內容的 TfEditCookie 值。 編輯內容保證具有讀取/寫入鎖定。

[in] pic

表示已清除內容的 ITfContext 介面指標。

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

內容清除會在:

  • 當內容仍在內容堆疊上時,就會停用文字服務。 當使用中文字服務變更或使用中語言在文字服務作用中時變更時,可能會發生這種情況。
  • 在內容仍在內容堆疊上時呼叫 ITfThreadMgr::D eactivate

ITfCleanupContextDurationSink::OnStartCleanupContext 會在 TSF 管理員開始進行 ITfCleanupContextSink::OnCleanupContext 通知之前呼叫。 當所有 OnCleanupContext 通知完成時,TSF 管理員會呼叫 OnEndCleanupContext

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 msctf.h
Dll Imekrcic.dll
可轉散發套件 Windows 2000 專業版上的 TSF 1.0

另請參閱

ITfCleanupContextSink 介面ITfContext 介面TfEditCookie