From 393b18ab7a45c22813a4ed3a2798c5fad84cfeea Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 23 Mar 2021 13:04:04 +0000 Subject: [PATCH] riched20: Call OnTxInPlaceActivate() from the host. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/riched20/txthost.c | 2 +- dlls/riched20/txtsrv.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/riched20/txthost.c b/dlls/riched20/txthost.c index c1f175dc9c2..cda9b35b199 100644 --- a/dlls/riched20/txthost.c +++ b/dlls/riched20/txthost.c @@ -1021,7 +1021,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam, LONG codepage = unicode ? CP_UNICODE : CP_ACP; int len; - ITextServices_OnTxPropertyBitsChange( host->text_srv, TXTBIT_CLIENTRECTCHANGE, 0 ); + ITextServices_OnTxInPlaceActivate( host->text_srv, NULL ); if (lparam) { diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c index 7bdd6ab924b..bab52269db6 100644 --- a/dlls/riched20/txtsrv.c +++ b/dlls/riched20/txtsrv.c @@ -220,6 +220,7 @@ static HRESULT update_client_rect( struct text_services *services, const RECT *c if (!client) { + if (!services->editor->in_place_active) return E_INVALIDARG; hr = ITextHost_TxGetClientRect( services->host, &rect ); client = ▭ }