[ros-diffs] [ekohl] 30095: Select the first user and system environment variable upon initialization.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Sat Nov 3 23:09:27 CET 2007


Author: ekohl
Date: Sun Nov  4 01:09:27 2007
New Revision: 30095

URL: http://svn.reactos.org/svn/reactos?rev=30095&view=rev
Log:
Select the first user and system environment variable upon initialization.

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.c?rev=30095&r1=30094&r2=30095&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/environment.c (original)
+++ trunk/reactos/dll/cpl/sysdm/environment.c Sun Nov  4 01:09:27 2007
@@ -311,12 +311,13 @@
                             HKEY_CURRENT_USER,
                             _T("Environment"));
 
-    (void)ListView_SetColumnWidth(hwndListView,2,LVSCW_AUTOSIZE_USEHEADER);
-
-    ListView_SetItemState(hwndListView,0,LVIS_FOCUSED,LVIS_FOCUSED);
+    (void)ListView_SetColumnWidth(hwndListView, 2, LVSCW_AUTOSIZE_USEHEADER);
+
+    ListView_SetItemState(hwndListView, 0,
+                          LVIS_FOCUSED | LVIS_SELECTED,
+                          LVIS_FOCUSED | LVIS_SELECTED);
 
     (void)ListView_Update(hwndListView,0);
-
 
     /* Set system environment variables */
     hwndListView = GetDlgItem(hwndDlg, IDC_SYSTEM_VARIABLE_LIST);
@@ -329,11 +330,13 @@
                             HKEY_LOCAL_MACHINE,
                             _T("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"));
 
-    (void)ListView_SetColumnWidth(hwndListView,2,LVSCW_AUTOSIZE_USEHEADER);
-
-    ListView_SetItemState(hwndListView,0,LVIS_FOCUSED,LVIS_FOCUSED);
-
-    (void)ListView_Update(hwndListView,0);
+    (void)ListView_SetColumnWidth(hwndListView, 2, LVSCW_AUTOSIZE_USEHEADER);
+
+    ListView_SetItemState(hwndListView, 0,
+                          LVIS_FOCUSED | LVIS_SELECTED,
+                          LVIS_FOCUSED | LVIS_SELECTED);
+
+    (void)ListView_Update(hwndListView, 0);
 }
 
 




More information about the Ros-diffs mailing list