mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[USER32] Fixed scrolling issue in Change Icon dialog. CORE-16163
This commit is contained in:
parent
7ba93b9463
commit
a4483d79da
1 changed files with 14 additions and 9 deletions
|
@ -21,7 +21,7 @@
|
|||
*
|
||||
* This code was audited for completeness against the documented features
|
||||
* of Comctl32.dll version 6.0 on Oct. 9, 2004, by Dimitrie O. Paun.
|
||||
*
|
||||
*
|
||||
* Unless otherwise noted, we believe this code to be complete, as per
|
||||
* the specification mentioned above.
|
||||
* If you discover missing features, or bugs, please note them below.
|
||||
|
@ -321,9 +321,14 @@ static LRESULT LISTBOX_SetTopItem( LB_DESCR *descr, INT index, BOOL scroll )
|
|||
}
|
||||
else
|
||||
diff = (descr->top_item - index) * descr->item_height;
|
||||
|
||||
ScrollWindowEx( descr->self, 0, diff, NULL, NULL, 0, NULL,
|
||||
SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN );
|
||||
#ifdef __REACTOS__
|
||||
if (descr->style & LBS_MULTICOLUMN)
|
||||
ScrollWindowEx(descr->self, diff, 0, NULL, NULL, 0, NULL,
|
||||
SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN);
|
||||
else
|
||||
#endif
|
||||
ScrollWindowEx(descr->self, 0, diff, NULL, NULL, 0, NULL,
|
||||
SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN);
|
||||
}
|
||||
else
|
||||
InvalidateRect( descr->self, NULL, TRUE );
|
||||
|
@ -512,7 +517,7 @@ static INT LISTBOX_GetItemFromPoint( const LB_DESCR *descr, INT x, INT y )
|
|||
*
|
||||
* Paint an item.
|
||||
*/
|
||||
static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
|
||||
static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
|
||||
INT index, UINT action, BOOL ignoreFocus )
|
||||
{
|
||||
LB_ITEMDATA *item = NULL;
|
||||
|
@ -1070,7 +1075,7 @@ static LRESULT LISTBOX_Paint( LB_DESCR *descr, HDC hdc )
|
|||
/* keep the focus rect, to paint the focus item after */
|
||||
if (i == descr->focus_item)
|
||||
focusRect = rect;
|
||||
|
||||
|
||||
LISTBOX_PaintItem( descr, hdc, &rect, i, ODA_DRAWENTIRE, TRUE );
|
||||
rect.top = rect.bottom;
|
||||
|
||||
|
@ -2621,8 +2626,8 @@ LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!descr)
|
||||
{
|
||||
|
@ -3137,7 +3142,7 @@ LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
|
|||
LISTBOX_HandleMouseMove( descr, mousePos.x, mousePos.y);
|
||||
|
||||
descr->captured = captured;
|
||||
}
|
||||
}
|
||||
else if (GetCapture() == descr->self)
|
||||
{
|
||||
LISTBOX_HandleMouseMove( descr, (INT16)LOWORD(lParam),
|
||||
|
|
Loading…
Reference in a new issue