mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
[USER32] Fixed issue with thumb scrolling on IDC_PICKICON_LIST
This commit is contained in:
parent
d0a6727637
commit
ad591d0269
2 changed files with 8 additions and 2 deletions
|
@ -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 a new issue