texthost->hWnd = hwnd;
texthost->bEmulateVersion10 = bEmulateVersion10;
- editor = ME_MakeEditor(&texthost->ITextHost_iface, bEmulateVersion10);
+ editor = ME_MakeEditor(&texthost->ITextHost_iface, bEmulateVersion10, cs->style);
editor->exStyleFlags = GetWindowLongW(hwnd, GWL_EXSTYLE);
editor->styleFlags |= GetWindowLongW(hwnd, GWL_STYLE) & ES_WANTRETURN;
editor->hWnd = hwnd; /* FIXME: Remove editor's dependence on hWnd */