mirror of
https://github.com/reactos/reactos.git
synced 2024-06-24 06:51:47 +00: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:
|
case SB_THUMBTRACK:
|
||||||
info.cbSize = sizeof(info);
|
info.cbSize = sizeof(info);
|
||||||
info.fMask = SIF_TRACKPOS;
|
info.fMask = SIF_TRACKPOS;
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
GetScrollInfo( descr->self, SB_HORZ, &info );
|
||||||
|
#else
|
||||||
GetScrollInfo( descr->self, SB_VERT, &info );
|
GetScrollInfo( descr->self, SB_VERT, &info );
|
||||||
|
#endif
|
||||||
LISTBOX_SetTopItem( descr, info.nTrackPos*descr->page_size,
|
LISTBOX_SetTopItem( descr, info.nTrackPos*descr->page_size,
|
||||||
TRUE );
|
TRUE );
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1042,8 +1042,10 @@ RealDefWindowProcW(HWND hWnd,
|
||||||
if (!Wnd->pSBInfo)
|
if (!Wnd->pSBInfo)
|
||||||
{
|
{
|
||||||
SCROLLINFO si = {sizeof si, SIF_ALL, 0, 100, 0, 0, 0};
|
SCROLLINFO si = {sizeof si, SIF_ALL, 0, 100, 0, 0, 0};
|
||||||
SetScrollInfo( hWnd, SB_HORZ, &si, FALSE );
|
if (Wnd->style & WS_HSCROLL)
|
||||||
SetScrollInfo( hWnd, SB_VERT, &si, FALSE );
|
SetScrollInfo( hWnd, SB_HORZ, &si, FALSE );
|
||||||
|
if (Wnd->style & WS_VSCROLL)
|
||||||
|
SetScrollInfo( hWnd, SB_VERT, &si, FALSE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue