riched20: Reset selection when text is reset.

This commit is contained in:
Ulrich Czekalla 2005-12-14 10:50:04 +01:00 committed by Alexandre Julliard
parent c50fbab47f
commit 0f55ef3bef
1 changed files with 1 additions and 0 deletions

View File

@ -1471,6 +1471,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
TRACE("WM_SETTEXT - NULL\n");
ME_CommitUndo(editor);
ME_EmptyUndoStack(editor);
ME_SetSelection(editor, 0, 0);
ME_UpdateRepaint(editor);
return 0;
}