mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Select the previous list view item when an environment variable has been deleted.
svn path=/trunk/; revision=30092
This commit is contained in:
@@ -458,6 +458,14 @@ OnDeleteVariable(HWND hwndDlg,
|
||||
}
|
||||
|
||||
(void)ListView_DeleteItem(hwndListView, iItem);
|
||||
|
||||
/* Select the previous item */
|
||||
if (iItem > 0)
|
||||
iItem--;
|
||||
|
||||
ListView_SetItemState(hwndListView, iItem,
|
||||
LVIS_FOCUSED | LVIS_SELECTED,
|
||||
LVIS_FOCUSED | LVIS_SELECTED);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user