ITextStoreAnchorSink::OnLayoutChange method (textstor.h)
The ITextStoreAnchorSink::OnLayoutChange method is called when the layout (on-screen representation) of the document changes.
HRESULT OnLayoutChange( [in] TsLayoutCode lcode, [in] TsViewCookie vcView );
Contains a TsLayoutCode value that defines the type of change.
Contains an application-defined cookie that identifies the document. For more information, see ITextStoreAnchor::GetActiveView.
This method can return one of these values.
||The method was successful.|
A layout change can be in response to a change to the text, font size, window movement, window resizing, or other change that affects the displayed text.
If a call to ITextStoreAnchor::GetTextExt or ITextStoreAnchor::GetAnchorFromPoint returns TS_E_NOLAYOUT because the application has not calculated the layout, the application must call ITextStoreAnchorSink::OnLayoutChange when the layout is available.
|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|