riched20: Call OnTxInPlaceActivate() from the host.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2021-03-23 13:04:04 +00:00 committed by Alexandre Julliard
parent 132a35b822
commit 393b18ab7a
2 changed files with 2 additions and 1 deletions

View File

@ -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)
{

View File

@ -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 = &rect;
}