ITextStoreACPSink::OnSelectionChange method (textstor.h)

Called when the selection within the document changes.

Syntax

HRESULT OnSelectionChange();

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
TS_E_NOLOCK
The manager holds a lock on the document.

Remarks

ITextStoreACPSink::OnSelectionChange is never called when the selection is modified by one of the ITextStoreACP interface methods, such as ITextStoreACP::SetSelection or ITextStoreACP::InsertTextAtSelection.

When calling this method, the application must be able to grant a document lock.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header textstor.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

Document Locks

ITextStoreACP

ITextStoreACP::InsertTextAtSelection

ITextStoreACP::SetSelection

ITextStoreACPSink