From f57345336f077d29877cf884583b4e7afd8bbf29 Mon Sep 17 00:00:00 2001 From: Sergey Guralnik Date: Fri, 25 Jan 2013 10:30:42 +0200 Subject: user32: Init standard scrollbars during WM_NCCREATE (eterbug #8971). --- dlls/user32/defwnd.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c index b1e1cf5..abd5200 100644 --- a/dlls/user32/defwnd.c +++ b/dlls/user32/defwnd.c @@ -825,6 +825,13 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam if (!IS_INTRESOURCE(cs->lpszName)) DEFWND_SetTextA( hwnd, cs->lpszName ); result = 1; + + if(cs->style & (WS_HSCROLL | WS_VSCROLL)) + { + SCROLLINFO si = {sizeof si, SIF_ALL, 0, 100, 0, 0, 0}; + SetScrollInfo( hwnd, SB_HORZ, &si, FALSE ); + SetScrollInfo( hwnd, SB_VERT, &si, FALSE ); + } } break; @@ -972,6 +979,13 @@ LRESULT WINAPI DefWindowProcW( if (!IS_INTRESOURCE(cs->lpszName)) DEFWND_SetTextW( hwnd, cs->lpszName ); result = 1; + + if(cs->style & (WS_HSCROLL | WS_VSCROLL)) + { + SCROLLINFO si = {sizeof si, SIF_ALL, 0, 100, 0, 0, 0}; + SetScrollInfo( hwnd, SB_HORZ, &si, FALSE ); + SetScrollInfo( hwnd, SB_VERT, &si, FALSE ); + } } break; -- 1.7.0.4