Author: jimtabor Date: Sun Jun 2 20:52:54 2013 New Revision: 59160
URL: http://svn.reactos.org/svn/reactos?rev=59160&view=rev Log: [User32] - Patch by Sergey Guralnik : Init standard scrollbars during WM_NCCREATE. - Modified for ReactOS.
Modified: trunk/reactos/win32ss/user/user32/windows/defwnd.c
Modified: trunk/reactos/win32ss/user/user32/windows/defwnd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/windows... ============================================================================== --- trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] Sun Jun 2 20:52:54 2013 @@ -1893,6 +1893,17 @@ { case WM_NCCREATE: { + if ( Wnd && + Wnd->style & (WS_HSCROLL | WS_VSCROLL) ) + { + if (!Wnd->pSBInfo) + { + SCROLLINFO si = {sizeof si, SIF_ALL, 0, 100, 0, 0, 0}; + SetScrollInfo( hWnd, SB_HORZ, &si, FALSE ); + SetScrollInfo( hWnd, SB_VERT, &si, FALSE ); + } + } + if (lParam) { LPCREATESTRUCTA cs = (LPCREATESTRUCTA)lParam; @@ -2060,6 +2071,17 @@ { case WM_NCCREATE: { + if ( Wnd && + Wnd->style & (WS_HSCROLL | WS_VSCROLL) ) + { + if (!Wnd->pSBInfo) + { + SCROLLINFO si = {sizeof si, SIF_ALL, 0, 100, 0, 0, 0}; + SetScrollInfo( hWnd, SB_HORZ, &si, FALSE ); + SetScrollInfo( hWnd, SB_VERT, &si, FALSE ); + } + } + if (lParam) { LPCREATESTRUCTW cs = (LPCREATESTRUCTW)lParam;