[SHELL32] Allow deleting a file type/extension (#553)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 19 May 2018 14:12:11 +0000 (23:12 +0900)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Sat, 19 May 2018 14:12:11 +0000 (16:12 +0200)
CORE-12906

34 files changed:
dll/win32/shell32/dialogs/folder_options.cpp
dll/win32/shell32/lang/bg-BG.rc
dll/win32/shell32/lang/ca-ES.rc
dll/win32/shell32/lang/cs-CZ.rc
dll/win32/shell32/lang/da-DK.rc
dll/win32/shell32/lang/de-DE.rc
dll/win32/shell32/lang/el-GR.rc
dll/win32/shell32/lang/en-GB.rc
dll/win32/shell32/lang/en-US.rc
dll/win32/shell32/lang/es-ES.rc
dll/win32/shell32/lang/et-EE.rc
dll/win32/shell32/lang/fi-FI.rc
dll/win32/shell32/lang/fr-FR.rc
dll/win32/shell32/lang/he-IL.rc
dll/win32/shell32/lang/hu-HU.rc
dll/win32/shell32/lang/it-IT.rc
dll/win32/shell32/lang/ja-JP.rc
dll/win32/shell32/lang/ko-KR.rc
dll/win32/shell32/lang/nl-NL.rc
dll/win32/shell32/lang/no-NO.rc
dll/win32/shell32/lang/pl-PL.rc
dll/win32/shell32/lang/pt-BR.rc
dll/win32/shell32/lang/pt-PT.rc
dll/win32/shell32/lang/ro-RO.rc
dll/win32/shell32/lang/ru-RU.rc
dll/win32/shell32/lang/sk-SK.rc
dll/win32/shell32/lang/sl-SI.rc
dll/win32/shell32/lang/sq-AL.rc
dll/win32/shell32/lang/sv-SE.rc
dll/win32/shell32/lang/tr-TR.rc
dll/win32/shell32/lang/uk-UA.rc
dll/win32/shell32/lang/zh-CN.rc
dll/win32/shell32/lang/zh-TW.rc
dll/win32/shell32/shresdef.h

index b53dd8c..cffee8b 100644 (file)
@@ -1349,6 +1349,30 @@ FindItem(HWND hDlgCtrl, WCHAR * ItemName)
     return ListView_FindItem(hDlgCtrl, 0, &findInfo);
 }
 
+static BOOL
+DeleteExt(HWND hwndDlg, LPCWSTR pszExt)
+{
+    if (*pszExt != L'.')
+        return FALSE;
+
+    HKEY hKey;
+    LONG nResult = RegOpenKeyExW(HKEY_CLASSES_ROOT, pszExt, 0, KEY_READ, &hKey);
+    if (nResult != ERROR_SUCCESS)
+        return FALSE;
+
+    WCHAR szValue[64];
+    DWORD cbValue = sizeof(szValue);
+    nResult = RegQueryValueExW(hKey, NULL, NULL, NULL, LPBYTE(szValue), &cbValue);
+    RegCloseKey(hKey);
+    if (nResult != ERROR_SUCCESS)
+        return FALSE;
+
+    if (szValue[0])
+        SHDeleteKeyW(HKEY_CLASSES_ROOT, szValue);
+
+    return SHDeleteKeyW(HKEY_CLASSES_ROOT, pszExt) == ERROR_SUCCESS;
+}
+
 static
 VOID
 InsertFileType(HWND hDlgCtrl, WCHAR * szName, PINT iItem, WCHAR * szFile)
@@ -1749,6 +1773,12 @@ NewExtDlg_OnOK(HWND hwndDlg, NEWEXT_DIALOG *pNewExt)
             return FALSE;
         }
 
+        // Delete the extension
+        CStringW strExt(L".");
+        strExt += find.psz;
+        strExt.MakeLower();
+        DeleteExt(hwndDlg, strExt);
+
         // Delete the item
         ListView_DeleteItem(pNewExt->hwndLV, iItem);
     }
@@ -1873,6 +1903,28 @@ FileTypesDlg_AddExt(HWND hwndDlg, LPCWSTR pszExt, LPCWSTR pszFileType)
     return TRUE;
 }
 
+static BOOL
+FileTypesDlg_RemoveExt(HWND hwndDlg)
+{
+    HWND hListView = GetDlgItem(hwndDlg, IDC_FILETYPES_LISTVIEW);
+
+    INT iItem = ListView_GetNextItem(hListView, -1, LVNI_SELECTED);
+    if (iItem == -1)
+        return FALSE;
+
+    WCHAR szExt[20];
+    szExt[0] = L'.';
+    ListView_GetItemText(hListView, iItem, 0, &szExt[1], _countof(szExt) - 1);
+    CharLowerW(szExt);
+
+    if (DeleteExt(hwndDlg, szExt))
+    {
+        ListView_DeleteItem(hListView, iItem);
+        return TRUE;
+    }
+    return FALSE;
+}
+
 // IDD_FOLDER_OPTIONS_FILETYPES dialog
 INT_PTR
 CALLBACK
@@ -1911,6 +1963,16 @@ FolderOptionsFileTypesDlg(
                         FileTypesDlg_AddExt(hwndDlg, newext.szExt, newext.szFileType);
                     }
                     break;
+                case IDC_FILETYPES_DELETE:
+                    {
+                        CStringW strRemoveExt(MAKEINTRESOURCEW(IDS_REMOVE_EXT));
+                        CStringW strTitle(MAKEINTRESOURCEW(IDS_FILE_TYPES));
+                        if (MessageBoxW(hwndDlg, strRemoveExt, strTitle, MB_ICONQUESTION | MB_YESNO) == IDYES)
+                        {
+                            FileTypesDlg_RemoveExt(hwndDlg);
+                        }
+                    }
+                    break;
                 case IDC_FILETYPES_CHANGE:
                     pItem = FindSelectedItem(GetDlgItem(hwndDlg, IDC_FILETYPES_LISTVIEW));
                     if (pItem)
index e1434cc..94daa03 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 5e132b5..53c5eba 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 88341de..c7494eb 100644 (file)
@@ -885,4 +885,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 499a764..5016484 100644 (file)
@@ -905,4 +905,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 7413b00..5bf042e 100644 (file)
@@ -900,4 +900,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index b52405c..635fce0 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 75807f8..4cd9e85 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 3662017..5d327f0 100644 (file)
@@ -900,4 +900,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 560c3bc..4d86e8c 100644 (file)
@@ -901,4 +901,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index d7e7f5f..7fe739b 100644 (file)
@@ -907,4 +907,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 9c04759..df2a16d 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 94934f3..a1d20cb 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 21adbda..85a1083 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 8cfc2a4..3852133 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index a676af7..82feea8 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index afc51ab..e21a079 100644 (file)
@@ -896,4 +896,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 19a06e0..fa1c1b9 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index ba0280c..1e46a4c 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 9a06724..2239773 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 4040c42..e3a06f2 100644 (file)
@@ -904,4 +904,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "Musisz podać rozszerzenie."
     IDS_NEWEXT_ALREADY_ASSOC "Rozszerzenie %s jest już związane z typem plików %s. Czy chcesz usunąć powiązanie %s z %s i utworzyć dla niego nowy typ plików?"
     IDS_NEWEXT_EXT_IN_USE "Rozszerzenie jest w użyciu"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index e7da10f..19c7f06 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index f0df0ca..d15c691 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 213d1c6..54b0ebf 100644 (file)
@@ -901,4 +901,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 9999c34..e924f7b 100644 (file)
@@ -901,4 +901,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index e436867..acc1f32 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index b31654d..8beba13 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 0b24962..93e14c4 100644 (file)
@@ -903,4 +903,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 1ffa909..fd0f123 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index 8bfc5be..d54c399 100644 (file)
@@ -901,4 +901,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index e821dde..1ff6fba 100644 (file)
@@ -899,4 +899,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index e51e1b0..c32e288 100644 (file)
@@ -909,4 +909,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index e0bb30c..60aa2e7 100644 (file)
@@ -907,4 +907,6 @@ BEGIN
     IDS_NEWEXT_SPECIFY_EXT "You must specify an extension."
     IDS_NEWEXT_ALREADY_ASSOC "Extension %s is already associated with File Type %s. Do you want to un-associate %s with %s and create a new File Type for it?"
     IDS_NEWEXT_EXT_IN_USE "Extension is in use"
+
+    IDS_REMOVE_EXT "If you remove a registered file name extension, you will not be able to open files with this extension by double-clicking their icons.\n\nAre you sure you want to remove this extension?"
 END
index decbc12..0014ec2 100644 (file)
 #define IDS_NEWEXT_ALREADY_ASSOC                    30520
 #define IDS_NEWEXT_EXT_IN_USE                       30521
 
+#define IDS_REMOVE_EXT                              30522
+
 /* Dialogs */
 
 /* Run dialog */