共用方式為


ITextStoreAnchorSink::OnLayoutChange 方法 (textstor.h)

當版面配置 (檔) 變更時,會呼叫 ITextStoreAnchorSink::OnLayoutChange 方法。

語法

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

參數

[in] lcode

包含定義變更類型的 TsLayoutCode 值。

[in] vcView

包含可識別檔的應用程式定義 Cookie。 如需詳細資訊,請參閱 ITextStoreAnchor::GetActiveView

傳回值

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

描述
S_OK
此方法成功。

備註

版面配置變更可以響應變更文字、字型大小、視窗移動、視窗重設大小,或影響顯示之文字的其他變更。

如果呼叫 ITextStoreAnchor::GetTextExtITextStoreAnchor::GetAnchorFromPoint 會傳回TS_E_NOLAYOUT,因為應用程式尚未計算配置,應用程式必須在配置可用時呼叫 ITextStoreAnchorSink::OnLayoutChange

規格需求

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

另請參閱

ITextStoreAnchor::GetActiveView

ITextStoreAnchor::GetAnchorFromPoint

ITextStoreAnchor::GetTextExt

ITextStoreAnchorSink

TsLayoutCode