From 871fbd1fdf9d4d1f7d952ef5243eed4f4b560147 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Fri, 4 Mar 2005 10:47:54 +0000 Subject: [PATCH] Don't clear ES_AUTO[HV]SCROLL in the edit control created by richedit. --- dlls/richedit/richedit.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/richedit/richedit.c b/dlls/richedit/richedit.c index 7459983d5af..d51e80694fc 100644 --- a/dlls/richedit/richedit.c +++ b/dlls/richedit/richedit.c @@ -114,7 +114,6 @@ static LRESULT WINAPI RICHED32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LONG newstyle = 0; - LONG style = 0; RTFControl_Info *info; CHARRANGE *cr; @@ -141,11 +140,7 @@ static LRESULT WINAPI RICHED32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, /* remove SCROLLBARS from the current window style */ info->hwndParent = ((LPCREATESTRUCTA) lParam)->hwndParent; - newstyle = style = ((LPCREATESTRUCTA) lParam)->style; - newstyle &= ~WS_HSCROLL; - newstyle &= ~WS_VSCROLL; - newstyle &= ~ES_AUTOHSCROLL; - newstyle &= ~ES_AUTOVSCROLL; + newstyle = ((LPCREATESTRUCTA) lParam)->style; newstyle &= ~ES_NUMBER; /* Reused as ES_DISABLENOSCROLL */ SetWindowLongA(hwnd,GWL_STYLE, newstyle);