Commit bfd56391 authored by Alexandre Julliard's avatar Alexandre Julliard

oleview: Build the file filter by hand instead of hardcoding it in resource strings.

parent 56193df2
...@@ -98,7 +98,8 @@ STRINGTABLE ...@@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0" IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "ITypeLib viser" IDS_TYPELIBTITLE "ITypeLib viser"
IDS_OPEN "ben" IDS_OPEN "ben"
IDS_OPEN_TYPELIB_FILTER "TypeLib Filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib Filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Knyt til fil via File Moniker" IDM_BIND, "Knyt til fil via File Moniker"
IDM_TYPELIB, "ben en TypeLib fil og vis indholdet" IDM_TYPELIB, "ben en TypeLib fil og vis indholdet"
......
...@@ -100,7 +100,8 @@ STRINGTABLE ...@@ -100,7 +100,8 @@ STRINGTABLE
IDS_ABOUTVER "Version 1.0" IDS_ABOUTVER "Version 1.0"
IDS_TYPELIBTITLE "ITypeLib-Betrachter" IDS_TYPELIBTITLE "ITypeLib-Betrachter"
IDS_OPEN "Öffnen" IDS_OPEN "Öffnen"
IDS_OPEN_TYPELIB_FILTER "TypeLib Dateien (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Alle Dateien (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib Dateien (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Alle Dateien (*.*)"
IDM_BIND, "An Datei via Datei-Moniker binden" IDM_BIND, "An Datei via Datei-Moniker binden"
IDM_TYPELIB, "TypeLib-Datei öffnen und Inhalt betrachten" IDM_TYPELIB, "TypeLib-Datei öffnen und Inhalt betrachten"
......
...@@ -98,7 +98,8 @@ STRINGTABLE ...@@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0" IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "ITypeLib viewer" IDS_TYPELIBTITLE "ITypeLib viewer"
IDS_OPEN "Open" IDS_OPEN "Open"
IDS_OPEN_TYPELIB_FILTER "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Bind to file via a File Moniker" IDM_BIND, "Bind to file via a File Moniker"
IDM_TYPELIB, "Open a TypeLib file and view the contents" IDM_TYPELIB, "Open a TypeLib file and view the contents"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0" IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "Visionneur d'ITypeLib" IDS_TYPELIBTITLE "Visionneur d'ITypeLib"
IDS_OPEN "Ouvrir" IDS_OPEN "Ouvrir"
IDS_OPEN_TYPELIB_FILTER "Fichiers TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Tous les fichiers (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "Fichiers TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Tous les fichiers (*.*)"
IDM_BIND, "Lier à un fichier à l'aide d'un File Moniker" IDM_BIND, "Lier à un fichier à l'aide d'un File Moniker"
IDM_TYPELIB, "Ouvrir un fichier TypeLib et afficher son contenu" IDM_TYPELIB, "Ouvrir un fichier TypeLib et afficher son contenu"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "גרסה 1.0" IDS_ABOUTVER "גרסה 1.0"
IDS_TYPELIBTITLE "מציג ITypeLib" IDS_TYPELIBTITLE "מציג ITypeLib"
IDS_OPEN "פתיחה" IDS_OPEN "פתיחה"
IDS_OPEN_TYPELIB_FILTER "קובצי TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)‏\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0כל הקבצים (*.*)‏\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "קובצי TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)‏"
IDS_OPEN_FILTER_ALL "כל הקבצים (*.*)‏"
IDM_BIND, "איגוד לקובץ באמצעות מכנה קבצים" IDM_BIND, "איגוד לקובץ באמצעות מכנה קבצים"
IDM_TYPELIB, "פתיחת קובץ TypeLib וצפייה בתכנים" IDM_TYPELIB, "פתיחת קובץ TypeLib וצפייה בתכנים"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "versione 1.0" IDS_ABOUTVER "versione 1.0"
IDS_TYPELIBTITLE "Visore ITypeLib" IDS_TYPELIBTITLE "Visore ITypeLib"
IDS_OPEN "Apri" IDS_OPEN "Apri"
IDS_OPEN_TYPELIB_FILTER "File TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Tutti i file (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "File TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Tutti i file (*.*)"
IDM_BIND, "Fissa su un file con un File Moniker" IDM_BIND, "Fissa su un file con un File Moniker"
IDM_TYPELIB, "Apri un file TypeLib e visualizza i contenuti" IDM_TYPELIB, "Apri un file TypeLib e visualizza i contenuti"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "バージョン 1.0" IDS_ABOUTVER "バージョン 1.0"
IDS_TYPELIBTITLE "ITypeLib ビュアー" IDS_TYPELIBTITLE "ITypeLib ビュアー"
IDS_OPEN "開く" IDS_OPEN "開く"
IDS_OPEN_TYPELIB_FILTER "TypeLib ファイル (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0すべてのファイル (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib ファイル (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "すべてのファイル (*.*)"
IDM_BIND, "File Moniker を通じてファイルにバインドします" IDM_BIND, "File Moniker を通じてファイルにバインドします"
IDM_TYPELIB, "TypeLib ファイルを開いて中身を表示します" IDM_TYPELIB, "TypeLib ファイルを開いて中身を表示します"
......
...@@ -102,7 +102,8 @@ STRINGTABLE ...@@ -102,7 +102,8 @@ STRINGTABLE
IDS_ABOUTVER "버젼 1.0" IDS_ABOUTVER "버젼 1.0"
IDS_TYPELIBTITLE "ITypeLib 뷰어" IDS_TYPELIBTITLE "ITypeLib 뷰어"
IDS_OPEN "열기" IDS_OPEN "열기"
IDS_OPEN_TYPELIB_FILTER "TypeLib 파일 (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib 파일 (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "파일 별명으로 파일 연결" IDM_BIND, "파일 별명으로 파일 연결"
IDM_TYPELIB, "타입 라이브러리 파일을 열고 내용 보기" IDM_TYPELIB, "타입 라이브러리 파일을 열고 내용 보기"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "versija 1.0" IDS_ABOUTVER "versija 1.0"
IDS_TYPELIBTITLE "ITypeLib žiūryklė" IDS_TYPELIBTITLE "ITypeLib žiūryklė"
IDS_OPEN "Atverti" IDS_OPEN "Atverti"
IDS_OPEN_TYPELIB_FILTER "TypeLib failai (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Visi failai (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib failai (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Visi failai (*.*)"
IDM_BIND, "Susieti su failu per failo vardą" IDM_BIND, "Susieti su failu per failo vardą"
IDM_TYPELIB, "Atverti TypeLib failą ir peržiūrėti jo turinį" IDM_TYPELIB, "Atverti TypeLib failą ir peržiūrėti jo turinį"
......
...@@ -100,7 +100,8 @@ STRINGTABLE ...@@ -100,7 +100,8 @@ STRINGTABLE
IDS_ABOUTVER "versie 1.0" IDS_ABOUTVER "versie 1.0"
IDS_TYPELIBTITLE "ITypeLib-viewer" IDS_TYPELIBTITLE "ITypeLib-viewer"
IDS_OPEN "Open" IDS_OPEN "Open"
IDS_OPEN_TYPELIB_FILTER "TypeLib bestanden (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Alle bestanden (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib bestanden (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Alle bestanden (*.*)"
IDM_BIND, "Verbind aan een bestand via een Bestandsbeschrijver (Moniker)" IDM_BIND, "Verbind aan een bestand via een Bestandsbeschrijver (Moniker)"
IDM_TYPELIB, "Open een TypeLib bestand en bekijk de inhoud" IDM_TYPELIB, "Open een TypeLib bestand en bekijk de inhoud"
......
...@@ -98,7 +98,8 @@ STRINGTABLE ...@@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "versjon 1.0" IDS_ABOUTVER "versjon 1.0"
IDS_TYPELIBTITLE "ITypeLib-viser" IDS_TYPELIBTITLE "ITypeLib-viser"
IDS_OPEN "pne" IDS_OPEN "pne"
IDS_OPEN_TYPELIB_FILTER "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Bind til fil via File Moniker" IDM_BIND, "Bind til fil via File Moniker"
IDM_TYPELIB, "pne en TypeLib-fil og vis innholdet" IDM_TYPELIB, "pne en TypeLib-fil og vis innholdet"
......
...@@ -99,7 +99,8 @@ STRINGTABLE ...@@ -99,7 +99,8 @@ STRINGTABLE
IDS_ABOUTVER "wersja 1.0" IDS_ABOUTVER "wersja 1.0"
IDS_TYPELIBTITLE "Przegldarka ITypeLib" IDS_TYPELIBTITLE "Przegldarka ITypeLib"
IDS_OPEN "Otwrz" IDS_OPEN "Otwrz"
IDS_OPEN_TYPELIB_FILTER "Pliki TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Wszystkie pliki (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "Pliki TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Wszystkie pliki (*.*)"
IDM_BIND, "Dowi do pliku za pomoc obiektu File Moniker" IDM_BIND, "Dowi do pliku za pomoc obiektu File Moniker"
IDM_TYPELIB, "Otwrz plik z biblioteki typw (TypeLib) i wywietl jego zawarto" IDM_TYPELIB, "Otwrz plik z biblioteki typw (TypeLib) i wywietl jego zawarto"
......
...@@ -176,7 +176,8 @@ STRINGTABLE ...@@ -176,7 +176,8 @@ STRINGTABLE
IDS_ABOUTVER "versão 1.0" IDS_ABOUTVER "versão 1.0"
IDS_TYPELIBTITLE "Visualizador ITypeLib" IDS_TYPELIBTITLE "Visualizador ITypeLib"
IDS_OPEN "Abrir" IDS_OPEN "Abrir"
IDS_OPEN_TYPELIB_FILTER "Arquivos TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Todos os Ficheiros (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "Arquivos TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Todos os Ficheiros (*.*)"
IDM_BIND, "Juntar ao arquivo através de um File Moniker" IDM_BIND, "Juntar ao arquivo através de um File Moniker"
IDM_TYPELIB, "Abrir um arquivo TypeLib e ver o conteúdo" IDM_TYPELIB, "Abrir um arquivo TypeLib e ver o conteúdo"
...@@ -238,7 +239,8 @@ STRINGTABLE ...@@ -238,7 +239,8 @@ STRINGTABLE
IDS_ABOUTVER "versão 1.0" IDS_ABOUTVER "versão 1.0"
IDS_TYPELIBTITLE "Visualizador ITypeLib" IDS_TYPELIBTITLE "Visualizador ITypeLib"
IDS_OPEN "Abrir" IDS_OPEN "Abrir"
IDS_OPEN_TYPELIB_FILTER "Ficheiros TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Todos os Ficheiros (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "Ficheiros TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Todos os Ficheiros (*.*)"
IDM_BIND, "Juntar a ficheiro através de um File Moniker" IDM_BIND, "Juntar a ficheiro através de um File Moniker"
IDM_TYPELIB, "Abrir um ficheiro TypeLib e ver os conteúdos" IDM_TYPELIB, "Abrir um ficheiro TypeLib e ver os conteúdos"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "versiunea 1.0" IDS_ABOUTVER "versiunea 1.0"
IDS_TYPELIBTITLE "Vizualizator ITypeLib" IDS_TYPELIBTITLE "Vizualizator ITypeLib"
IDS_OPEN "Deschide" IDS_OPEN "Deschide"
IDS_OPEN_TYPELIB_FILTER "Fișiere TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\\0*.tlb;*.olb;*.dll;*.ocx;*.exe\\0Toate fișierele (*.*)\\0*.*\\0\\0" IDS_OPEN_FILTER_TYPELIB "Fișiere TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Toate fișierele (*.*)"
IDM_BIND, "Leagă la fișier printr-un File Moniker" IDM_BIND, "Leagă la fișier printr-un File Moniker"
IDM_TYPELIB, "Deschide un fișier TypeLib și afișează conținutul" IDM_TYPELIB, "Deschide un fișier TypeLib și afișează conținutul"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "версия 1.0" IDS_ABOUTVER "версия 1.0"
IDS_TYPELIBTITLE "ITypeLib viewer" IDS_TYPELIBTITLE "ITypeLib viewer"
IDS_OPEN "Открыть" IDS_OPEN "Открыть"
IDS_OPEN_TYPELIB_FILTER "Файлы TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "Файлы TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "Привязать к файлу через File Moniker" IDM_BIND, "Привязать к файлу через File Moniker"
IDM_TYPELIB, "Открыть файл TypeLib и просмотреть содержимое" IDM_TYPELIB, "Открыть файл TypeLib и просмотреть содержимое"
......
...@@ -98,7 +98,8 @@ STRINGTABLE ...@@ -98,7 +98,8 @@ STRINGTABLE
IDS_ABOUTVER "version 1.0" IDS_ABOUTVER "version 1.0"
IDS_TYPELIBTITLE "ITypeLib-visare" IDS_TYPELIBTITLE "ITypeLib-visare"
IDS_OPEN "ppna" IDS_OPEN "ppna"
IDS_OPEN_TYPELIB_FILTER "TypeLib-filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Alla filer (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib-filer (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Alla filer (*.*)"
IDM_BIND, "Bind till fil via File Moniker" IDM_BIND, "Bind till fil via File Moniker"
IDM_TYPELIB, "ppna en TypeLib-fil och visa innehllet" IDM_TYPELIB, "ppna en TypeLib-fil och visa innehllet"
......
...@@ -102,7 +102,8 @@ STRINGTABLE ...@@ -102,7 +102,8 @@ STRINGTABLE
IDS_ABOUTVER "версія 1.0" IDS_ABOUTVER "версія 1.0"
IDS_TYPELIBTITLE "ITypeLib viewer" IDS_TYPELIBTITLE "ITypeLib viewer"
IDS_OPEN "Відкрити" IDS_OPEN "Відкрити"
IDS_OPEN_TYPELIB_FILTER "Файли TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0Всі файли (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "Файли TypeLib (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "Всі файли (*.*)"
IDM_BIND, "Прив'язати до файлу через File Moniker" IDM_BIND, "Прив'язати до файлу через File Moniker"
IDM_TYPELIB, "Відкрити файл TypeLib і переглянути вміст" IDM_TYPELIB, "Відкрити файл TypeLib і переглянути вміст"
......
...@@ -101,7 +101,8 @@ STRINGTABLE ...@@ -101,7 +101,8 @@ STRINGTABLE
IDS_ABOUTVER "版本 1.0" IDS_ABOUTVER "版本 1.0"
IDS_TYPELIBTITLE "ITypeLib 查看器" IDS_TYPELIBTITLE "ITypeLib 查看器"
IDS_OPEN "打开" IDS_OPEN "打开"
IDS_OPEN_TYPELIB_FILTER "TypeLib 文件 (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib 文件 (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "通过文件绰号绑定到文件" IDM_BIND, "通过文件绰号绑定到文件"
IDM_TYPELIB, "打开 TypeLib 文件并查看内容" IDM_TYPELIB, "打开 TypeLib 文件并查看内容"
...@@ -294,7 +295,8 @@ STRINGTABLE ...@@ -294,7 +295,8 @@ STRINGTABLE
IDS_ABOUTVER "版本 1.0 " IDS_ABOUTVER "版本 1.0 "
IDS_TYPELIBTITLE "ITypeLib 查看器" IDS_TYPELIBTITLE "ITypeLib 查看器"
IDS_OPEN "開啟" IDS_OPEN "開啟"
IDS_OPEN_TYPELIB_FILTER "TypeLib 檔案 (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0" IDS_OPEN_FILTER_TYPELIB "TypeLib 檔案 (*.tlb;*.olb;*.dll;*.ocx;*.exe)"
IDS_OPEN_FILTER_ALL "All Files (*.*)"
IDM_BIND, "通過檔案綽號綁定到檔案" IDM_BIND, "通過檔案綽號綁定到檔案"
IDM_TYPELIB, "開啟 TypeLib 檔案並查看內容" IDM_TYPELIB, "開啟 TypeLib 檔案並查看內容"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "main.h" #include "main.h"
#include "wine/unicode.h"
GLOBALS globals; GLOBALS globals;
static const WCHAR wszRegEdit[] = { '\\','r','e','g','e','d','i','t','.','e','x','e','\0' }; static const WCHAR wszRegEdit[] = { '\\','r','e','g','e','d','i','t','.','e','x','e','\0' };
...@@ -410,14 +411,17 @@ static int MenuCommand(WPARAM wParam, HWND hWnd) ...@@ -410,14 +411,17 @@ static int MenuCommand(WPARAM wParam, HWND hWnd)
break; break;
case IDM_TYPELIB: case IDM_TYPELIB:
{ {
static const WCHAR filterW[] = {'%','s','%','c','*','.','t','l','b',';','*','.','o','l','b',';','*','.','d','l','l',';','*','.','o','c','x',';','*','.','e','x','e','%','c','%','s','%','c','*','.','*','%','c',0};
OPENFILENAMEW ofn; OPENFILENAMEW ofn;
static WCHAR wszTitle[MAX_LOAD_STRING]; static WCHAR wszTitle[MAX_LOAD_STRING];
static WCHAR wszName[MAX_LOAD_STRING]; static WCHAR wszName[MAX_LOAD_STRING];
static WCHAR wszFilter[MAX_LOAD_STRING]; WCHAR filter_typelib[MAX_LOAD_STRING], filter_all[MAX_LOAD_STRING], filter[MAX_PATH];
LoadStringW(globals.hMainInst, IDS_OPEN, wszTitle, sizeof(wszTitle)/sizeof(wszTitle[0])); LoadStringW(globals.hMainInst, IDS_OPEN, wszTitle, sizeof(wszTitle)/sizeof(wszTitle[0]));
LoadStringW(globals.hMainInst, IDS_OPEN_TYPELIB_FILTER, wszFilter, sizeof(wszFilter)/sizeof(wszFilter[0])); LoadStringW(globals.hMainInst, IDS_OPEN_FILTER_TYPELIB, filter_typelib, sizeof(filter_typelib)/sizeof(WCHAR));
InitOpenFileName(hWnd, &ofn, wszFilter, wszTitle, wszName); LoadStringW(globals.hMainInst, IDS_OPEN_FILTER_ALL, filter_all, sizeof(filter_all)/sizeof(WCHAR));
snprintfW( filter, MAX_PATH, filterW, filter_typelib, 0, 0, filter_all, 0, 0 );
InitOpenFileName(hWnd, &ofn, filter, wszTitle, wszName);
if(GetOpenFileNameW(&ofn)) CreateTypeLibWindow(globals.hMainInst, wszName); if(GetOpenFileNameW(&ofn)) CreateTypeLibWindow(globals.hMainInst, wszName);
break; break;
} }
......
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
#define IDS_ABOUTVER 21 #define IDS_ABOUTVER 21
#define IDS_OPEN 30 #define IDS_OPEN 30
#define IDS_OPEN_TYPELIB_FILTER 31 #define IDS_OPEN_FILTER_TYPELIB 31
#define IDS_OPEN_FILTER_ALL 32
#define IDM_BIND 100 #define IDM_BIND 100
#define IDM_TYPELIB 101 #define IDM_TYPELIB 101
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment