diff --git a/dll/win32/shell32/dialogs/filetypes.cpp b/dll/win32/shell32/dialogs/filetypes.cpp index ba2a5c10a42..78e5f7322ad 100644 --- a/dll/win32/shell32/dialogs/filetypes.cpp +++ b/dll/win32/shell32/dialogs/filetypes.cpp @@ -1612,6 +1612,12 @@ FileTypesDlg_OnDelete(HWND hwndDlg) if (MessageBoxW(hwndDlg, strRemoveExt, strTitle, MB_ICONQUESTION | MB_YESNO) == IDYES) { FileTypesDlg_RemoveExt(hwndDlg); + + // Select first item (Win2k3 does it) + LV_ITEMW item = { LVIF_STATE }; + item.stateMask = item.state = LVIS_FOCUSED | LVIS_SELECTED; + item.iItem = 0; + ListView_SetItem(GetDlgItem(hwndDlg, IDC_FILETYPES_LISTVIEW), &item); } }