From: Mark Jansen Date: Sun, 2 Jul 2017 11:50:38 +0000 (+0000) Subject: [REGEDIT] Pre-select the text in the edit dialog. X-Git-Tag: ReactOS-0.4.6~134 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a386d71b0e8d2034b63db2a1cd87e870e7795e27 [REGEDIT] Pre-select the text in the edit dialog. svn path=/trunk/; revision=75263 --- diff --git a/reactos/base/applications/regedit/edit.c b/reactos/base/applications/regedit/edit.c index 9962a153f3e..28e58715afc 100644 --- a/reactos/base/applications/regedit/edit.c +++ b/reactos/base/applications/regedit/edit.c @@ -115,6 +115,7 @@ INT_PTR CALLBACK modify_string_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L SetDlgItemTextW(hwndDlg, IDC_VALUE_NAME, buffer); } SetDlgItemTextW(hwndDlg, IDC_VALUE_DATA, stringValueData); + SendMessage(GetDlgItem(hwndDlg, IDC_VALUE_DATA), EM_SETSEL, 0, -1); SetFocus(GetDlgItem(hwndDlg, IDC_VALUE_DATA)); return FALSE; case WM_COMMAND: @@ -305,6 +306,7 @@ INT_PTR CALLBACK modify_dword_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP CheckRadioButton (hwndDlg, IDC_FORMAT_HEX, IDC_FORMAT_DEC, IDC_FORMAT_HEX); swprintf(ValueString, L"%lx", dwordValueData); SetDlgItemTextW(hwndDlg, IDC_VALUE_DATA, ValueString); + SendMessage(GetDlgItem(hwndDlg, IDC_VALUE_DATA), EM_SETSEL, 0, -1); SetFocus(GetDlgItem(hwndDlg, IDC_VALUE_DATA)); return FALSE;