comdlg: Select all text when enter is pressed.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2016-08-30 08:00:21 +00:00 committed by Alexandre Julliard
parent b11d7f7482
commit 326a9ea137

View file

@ -2552,6 +2552,13 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
COMDLG32_SHFree(pidlCurrent);
if (filename_is_edit( fodInfos ))
SendMessageW(fodInfos->DlgInfos.hwndFileName, EM_SETSEL, 0, -1);
else
{
HWND hwnd;
hwnd = (HWND)SendMessageA(fodInfos->DlgInfos.hwndFileName, CBEM_GETEDITCONTROL, 0, 0);
SendMessageW(hwnd, EM_SETSEL, 0, -1);
}
}
}
ret = FALSE;