Author: ekohl
Date: Sat Nov 3 20:14:16 2007
New Revision: 30092
URL:
http://svn.reactos.org/svn/reactos?rev=30092&view=rev
Log:
Select the previous list view item when an environment variable has been deleted.
Modified:
trunk/reactos/dll/cpl/sysdm/environment.c
Modified: trunk/reactos/dll/cpl/sysdm/environment.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/environment.…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/environment.c (original)
+++ trunk/reactos/dll/cpl/sysdm/environment.c Sat Nov 3 20:14:16 2007
@@ -458,6 +458,14 @@
}
(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);
}
}