mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +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:
parent
0b6af09c68
commit
d601833eab
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue