mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[USER32] Fixed issue with thumb scrolling on IDC_PICKICON_LIST
This commit is contained in:
parent
d0a6727637
commit
ad591d0269
@ -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;
|
||||
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user