riched20: Send EN_UPDATE from text services.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ff36ab092d
commit
4e0fa60f22
|
@ -132,11 +132,14 @@ void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now)
|
|||
editor_ensure_visible( editor, &editor->pCursors[0] );
|
||||
|
||||
update_caret( editor );
|
||||
|
||||
if (!editor->bEmulateVersion10 || (editor->nEventMask & ENM_UPDATE))
|
||||
ME_SendOldNotify( editor, EN_UPDATE );
|
||||
|
||||
ITextHost_TxViewChange(editor->texthost, update_now);
|
||||
|
||||
ME_SendSelChange(editor);
|
||||
|
||||
/* send EN_CHANGE if the event mask asks for it */
|
||||
if(editor->nEventMask & ENM_CHANGE)
|
||||
{
|
||||
editor->nEventMask &= ~ENM_CHANGE;
|
||||
|
|
|
@ -1187,8 +1187,6 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
|
|||
HBRUSH brush = CreateSolidBrush( ITextHost_TxGetSysColor( &host->ITextHost_iface, COLOR_WINDOW ) );
|
||||
|
||||
hdc = BeginPaint( editor->hWnd, &ps );
|
||||
if (!editor->bEmulateVersion10 || (editor->nEventMask & ENM_UPDATE))
|
||||
ME_SendOldNotify( editor, EN_UPDATE );
|
||||
brush = SelectObject( hdc, brush );
|
||||
|
||||
/* Erase area outside of the formatting rectangle */
|
||||
|
|
Loading…
Reference in New Issue