Commit 9e1e80a3 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

oleview: Move the TypeLib open dialog filter message into a resource.

parent c610afe7
...@@ -96,6 +96,7 @@ STRINGTABLE ...@@ -96,6 +96,7 @@ 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 Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
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"
......
...@@ -96,6 +96,7 @@ STRINGTABLE ...@@ -96,6 +96,7 @@ 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"
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"
......
...@@ -96,6 +96,7 @@ STRINGTABLE ...@@ -96,6 +96,7 @@ 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 "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDM_BIND, "Lie un fichier l'aide d'un File Moniker" IDM_BIND, "Lie un fichier l'aide d'un File Moniker"
IDM_TYPELIB, "Ouvre un fichier TypeLib et afficher son contenu" IDM_TYPELIB, "Ouvre un fichier TypeLib et afficher son contenu"
......
...@@ -98,6 +98,7 @@ STRINGTABLE ...@@ -98,6 +98,7 @@ STRINGTABLE
IDS_ABOUTVER "버젼 1.0" IDS_ABOUTVER "버젼 1.0"
IDS_TYPELIBTITLE "ITypeLib 뷰어" IDS_TYPELIBTITLE "ITypeLib 뷰어"
IDS_OPEN "열기" IDS_OPEN "열기"
IDS_OPEN_TYPELIB_FILTER "TypeLib Files (*.tlb;*.olb;*.dll;*.ocx;*.exe)\0*.tlb;*.olb;*.dll;*.ocx;*.exe\0All Files (*.*)\0*.*\0\0"
IDM_BIND, "파일 별명으로 파일 연결" IDM_BIND, "파일 별명으로 파일 연결"
IDM_TYPELIB, "타입 라이브러리 파일을 열고 내용 보기" IDM_TYPELIB, "타입 라이브러리 파일을 열고 내용 보기"
......
...@@ -96,6 +96,7 @@ STRINGTABLE ...@@ -96,6 +96,7 @@ STRINGTABLE
IDS_ABOUTVER "versie 1.0" IDS_ABOUTVER "versie 1.0"
IDS_TYPELIBTITLE "ITypeLib Toner" IDS_TYPELIBTITLE "ITypeLib Toner"
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"
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"
......
...@@ -96,6 +96,7 @@ STRINGTABLE ...@@ -96,6 +96,7 @@ 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"
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"
......
...@@ -97,6 +97,7 @@ STRINGTABLE ...@@ -97,6 +97,7 @@ 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"
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"
......
...@@ -25,13 +25,6 @@ static WCHAR wszRegEdit[] = { 'r','e','g','e','d','i','t','.','e','x','e','\0' } ...@@ -25,13 +25,6 @@ static WCHAR wszRegEdit[] = { 'r','e','g','e','d','i','t','.','e','x','e','\0' }
static WCHAR wszFormat[] = { '<','o','b','j','e','c','t','\n',' ',' ',' ', static WCHAR wszFormat[] = { '<','o','b','j','e','c','t','\n',' ',' ',' ',
'c','l','a','s','s','i','d','=','\"','c','l','s','i','d',':','%','s','\"','\n', 'c','l','a','s','s','i','d','=','\"','c','l','s','i','d',':','%','s','\"','\n',
'>','\n','<','/','o','b','j','e','c','t','>','\0' }; '>','\n','<','/','o','b','j','e','c','t','>','\0' };
WCHAR wszFilter[] = { 'T','y','p','e','L','i','b',' ','F','i','l','e','s',' ',
'(','*','t','l','b',';','*','o','l','b',';','*','.','d','l','l',';',
'*','.','o','c','x',';','*','.','e','x','e',')','\0',
'*','.','t','l','b',';','*','.','o','l','b',';','*','.','d','l','l',';',
'*','.','o','c','x','*','.','e','x','e','\0',
'A','l','l',' ','F','i','l','e','s',' ','(','*','.','*',')','\0',
'*','.','*','\0','\0' };
INT_PTR CALLBACK SysConfProc(HWND hDlgWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) INT_PTR CALLBACK SysConfProc(HWND hDlgWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
...@@ -408,8 +401,10 @@ static int MenuCommand(WPARAM wParam, HWND hWnd) ...@@ -408,8 +401,10 @@ static int MenuCommand(WPARAM wParam, HWND hWnd)
OPENFILENAME ofn; OPENFILENAME 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];
LoadString(globals.hMainInst, IDS_OPEN, wszTitle, sizeof(wszTitle)); LoadString(globals.hMainInst, IDS_OPEN, wszTitle, sizeof(wszTitle));
LoadString(globals.hMainInst, IDS_OPEN_TYPELIB_FILTER, wszFilter, sizeof(wszFilter));
InitOpenFileName(hWnd, &ofn, wszFilter, wszTitle, wszName); InitOpenFileName(hWnd, &ofn, wszFilter, wszTitle, wszName);
if(GetOpenFileName(&ofn)) CreateTypeLibWindow(globals.hMainInst, wszName); if(GetOpenFileName(&ofn)) CreateTypeLibWindow(globals.hMainInst, wszName);
break; break;
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#define IDS_ABOUTVER 21 #define IDS_ABOUTVER 21
#define IDS_OPEN 30 #define IDS_OPEN 30
#define IDS_OPEN_TYPELIB_FILTER 31
#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