[USER32] Fixed issue with thumb scrolling on IDC_PICKICON_LIST

This commit is contained in:
Jose Carlos Jesus 2020-04-01 16:34:50 +01:00 committed by Mark Jansen
parent d0a6727637
commit ad591d0269
2 changed files with 8 additions and 2 deletions

View file

@ -1965,7 +1965,11 @@ static LRESULT LISTBOX_HandleHScroll( LB_DESCR *descr, WORD scrollReq, WORD pos
case SB_THUMBTRACK:
info.cbSize = sizeof(info);
info.fMask = SIF_TRACKPOS;
#ifdef __REACTOS__
GetScrollInfo( descr->self, SB_HORZ, &info );
#else
GetScrollInfo( descr->self, SB_VERT, &info );
#endif
LISTBOX_SetTopItem( descr, info.nTrackPos*descr->page_size,
TRUE );
break;

View file

@ -1042,8 +1042,10 @@ RealDefWindowProcW(HWND hWnd,
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 (Wnd->style & WS_HSCROLL)
SetScrollInfo( hWnd, SB_HORZ, &si, FALSE );
if (Wnd->style & WS_VSCROLL)
SetScrollInfo( hWnd, SB_VERT, &si, FALSE );
}
}