mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[COMCTL32] Do not allow user to move icons when in auto-arrange mode
This commit is contained in:
parent
2b53e33554
commit
08364d08c7
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue