Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITextStoreACPSink::OnLayoutChange method

Syntax


HRESULT OnLayoutChange(
  [in] TsLayoutCode lcode,
  [in] TsViewCookie vcView
);

Parameters

lcode [in]

Contains a TsLayoutCode value that defines the type of change.

vcView [in]

Contains an application-defined cookie that identifies the document. For more information, see ITextStoreACP::GetActiveView.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

 

Remarks

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 ITextStoreACP::GetTextExt or ITextStoreACP::GetACPFromPoint returns TS_E_NOLAYOUT because the application has not calculated the layout, the application must call ITextStoreACPSink::OnLayoutChange when the layout is available.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITextStoreACPSink
TsLayoutCode
ITextStoreACP::GetActiveView
ITextStoreACP::GetTextExt
ITextStoreACP::GetACPFromPoint

 

 

Show:
© 2016 Microsoft