riched20: Cache ES_WANTRETURN style.

This commit is contained in:
Sergey Khodych 2009-10-04 21:16:25 +03:00 committed by Alexandre Julliard
parent 2fda19ca98
commit 205df00c64
1 changed files with 1 additions and 0 deletions

View File

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