[COMCTL32] Do not allow user to move icons when in auto-arrange mode

This commit is contained in:
Charles Ambrye 2020-04-15 08:59:18 -07:00 committed by Giannis Adamopoulos
parent 2b53e33554
commit 08364d08c7

View file

@ -8992,6 +8992,12 @@ static BOOL LISTVIEW_SetItemPosition(LISTVIEW_INFO *infoPtr, INT nItem, const PO
if (!pt || nItem < 0 || nItem >= infoPtr->nItemCount ||
!(infoPtr->uView == LV_VIEW_ICON || infoPtr->uView == LV_VIEW_SMALLICON)) return FALSE;
#ifdef __REACTOS__
/* FIXME: This should really call snap to grid if auto-arrange is enabled
and limit the size of the grid to nItemCount elements */
if (is_autoarrange(infoPtr)) return FALSE;
#endif
Pt = *pt;
LISTVIEW_GetOrigin(infoPtr, &Origin);