共用方式為


iTextStoreACPSink::OnSelectionChange 方法 (textstor.h)

在檔內的選取範圍變更時呼叫。

Syntax

HRESULT OnSelectionChange();

傳回值

這個方法可以傳回下列其中一個值。

描述
S_OK
此方法成功。
TS_E_NOLOCK
管理員在檔上保留鎖定。

備註

當其中一個 ITextStoreACP 介面方法修改選取範圍時,永遠不會呼叫 ITextStoreACPSink::OnSelectionChange,例如 ITextStoreACP::SetSelectionITextStoreACP::InsertTextAtSelection

呼叫此方法時,應用程式必須能夠授與 文件鎖定

規格需求

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

另請參閱

檔鎖定

ITextStoreACP

ITextStoreACP::InsertTextAtSelection

ITextStoreACP::SetSelection

ITextStoreACPSink