From: Eric Kohl Date: Sat, 3 Nov 2007 22:09:27 +0000 (+0000) Subject: Select the first user and system environment variable upon initialization. X-Git-Tag: backups/curicon_rewrite@32816~1383 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=6405278e8ca49f0cf7214e5ba0b04497af7c06d4 Select the first user and system environment variable upon initialization. svn path=/trunk/; revision=30095 --- diff --git a/reactos/dll/cpl/sysdm/environment.c b/reactos/dll/cpl/sysdm/environment.c index 8b976564538..2812f9fc634 100644 --- a/reactos/dll/cpl/sysdm/environment.c +++ b/reactos/dll/cpl/sysdm/environment.c @@ -311,13 +311,14 @@ OnInitDialog(HWND hwndDlg) HKEY_CURRENT_USER, _T("Environment")); - (void)ListView_SetColumnWidth(hwndListView,2,LVSCW_AUTOSIZE_USEHEADER); + (void)ListView_SetColumnWidth(hwndListView, 2, LVSCW_AUTOSIZE_USEHEADER); - ListView_SetItemState(hwndListView,0,LVIS_FOCUSED,LVIS_FOCUSED); + 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 @@ OnInitDialog(HWND hwndDlg) HKEY_LOCAL_MACHINE, _T("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment")); - (void)ListView_SetColumnWidth(hwndListView,2,LVSCW_AUTOSIZE_USEHEADER); + (void)ListView_SetColumnWidth(hwndListView, 2, LVSCW_AUTOSIZE_USEHEADER); - ListView_SetItemState(hwndListView,0,LVIS_FOCUSED,LVIS_FOCUSED); + ListView_SetItemState(hwndListView, 0, + LVIS_FOCUSED | LVIS_SELECTED, + LVIS_FOCUSED | LVIS_SELECTED); - (void)ListView_Update(hwndListView,0); + (void)ListView_Update(hwndListView, 0); }