Don't clear ES_AUTO[HV]SCROLL in the edit control created by

richedit.
This commit is contained in:
Mike McCormack 2005-03-04 10:47:54 +00:00 committed by Alexandre Julliard
parent 74e2cfb66c
commit 871fbd1fdf
1 changed files with 1 additions and 6 deletions

View File

@ -114,7 +114,6 @@ static LRESULT WINAPI RICHED32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
LPARAM lParam) LPARAM lParam)
{ {
LONG newstyle = 0; LONG newstyle = 0;
LONG style = 0;
RTFControl_Info *info; RTFControl_Info *info;
CHARRANGE *cr; CHARRANGE *cr;
@ -141,11 +140,7 @@ static LRESULT WINAPI RICHED32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
/* remove SCROLLBARS from the current window style */ /* remove SCROLLBARS from the current window style */
info->hwndParent = ((LPCREATESTRUCTA) lParam)->hwndParent; info->hwndParent = ((LPCREATESTRUCTA) lParam)->hwndParent;
newstyle = style = ((LPCREATESTRUCTA) lParam)->style; newstyle = ((LPCREATESTRUCTA) lParam)->style;
newstyle &= ~WS_HSCROLL;
newstyle &= ~WS_VSCROLL;
newstyle &= ~ES_AUTOHSCROLL;
newstyle &= ~ES_AUTOVSCROLL;
newstyle &= ~ES_NUMBER; /* Reused as ES_DISABLENOSCROLL */ newstyle &= ~ES_NUMBER; /* Reused as ES_DISABLENOSCROLL */
SetWindowLongA(hwnd,GWL_STYLE, newstyle); SetWindowLongA(hwnd,GWL_STYLE, newstyle);