>From 0dfe5089a75c909012361ddb57b3eca4819acbdd Mon Sep 17 00:00:00 2001 From: Sergey Khodych Date: Sun, 4 Oct 2009 21:16:25 +0300 Subject: riched20: Cache ES_WANTRETURN style. --- dlls/riched20/txthost.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/riched20/txthost.c b/dlls/riched20/txthost.c index 950d200..68f4437 100644 --- a/dlls/riched20/txthost.c +++ b/dlls/riched20/txthost.c @@ -59,6 +59,7 @@ ITextHost *ME_CreateTextHost(HWND hwnd, CREATESTRUCTW *cs, BOOL bEmulateVersion1 editor = ME_MakeEditor((ITextHost*)texthost, bEmulateVersion10); editor->exStyleFlags = GetWindowLongW(hwnd, GWL_EXSTYLE); + editor->styleFlags |= GetWindowLongW(hwnd, GWL_STYLE) & ES_WANTRETURN; editor->hWnd = hwnd; /* FIXME: Remove editor's dependence on hWnd */ editor->hwndParent = cs->hwndParent; SetWindowLongPtrW(hwnd, 0, (LONG_PTR)editor); -- 1.5.3.3