From f20651b1a4e6776d0988d95bfb22b049a2c78d37 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 1 Apr 2008 13:19:06 +0200 Subject: [PATCH] winemine: Use a standard About box with the larger icon. --- programs/winemine/Cs.rc | 13 +---------- programs/winemine/De.rc | 13 +---------- programs/winemine/En.rc | 13 +---------- programs/winemine/Es.rc | 13 +---------- programs/winemine/Fi.rc | 13 +---------- programs/winemine/Fr.rc | 13 +---------- programs/winemine/It.rc | 13 +---------- programs/winemine/Ko.rc | 14 +----------- programs/winemine/Makefile.in | 1 + programs/winemine/Nl.rc | 13 +---------- programs/winemine/No.rc | 14 +----------- programs/winemine/Pl.rc | 13 +---------- programs/winemine/Pt.rc | 41 +++++++---------------------------- programs/winemine/Ro.rc | 13 +---------- programs/winemine/Ru.rc | 13 +---------- programs/winemine/Si.rc | 13 +---------- programs/winemine/Tr.rc | 13 +---------- programs/winemine/main.c | 9 +++++++- programs/winemine/resource.h | 1 + 19 files changed, 33 insertions(+), 216 deletions(-) diff --git a/programs/winemine/Cs.rc b/programs/winemine/Cs.rc index 5d6b96346f4..be3db64e133 100644 --- a/programs/winemine/Cs.rc +++ b/programs/winemine/Cs.rc @@ -29,6 +29,7 @@ LANGUAGE LANG_CZECH, SUBLANG_DEFAULT STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nikdo" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -93,15 +94,3 @@ CAPTION "Vlastn DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Storno", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "O aplikaci" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "Licenován pod LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/De.rc b/programs/winemine/De.rc index 5e01277e3c8..83712d40784 100644 --- a/programs/winemine/De.rc +++ b/programs/winemine/De.rc @@ -24,6 +24,7 @@ LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Niemand" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -88,15 +89,3 @@ CAPTION "Benutzerdefiniertes Spiel" DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Abbrechen", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 180, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Über" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "Lizensiert unter der LGPL", IDIGNORE, 35, 35, 135, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/En.rc b/programs/winemine/En.rc index 81ed5515b9a..86aaa9cd195 100644 --- a/programs/winemine/En.rc +++ b/programs/winemine/En.rc @@ -25,6 +25,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nobody" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -89,15 +90,3 @@ CAPTION "Custom Game" DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Cancel", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "About" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "Licensed under the LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Es.rc b/programs/winemine/Es.rc index d70dfb6f509..fc787e37a6c 100644 --- a/programs/winemine/Es.rc +++ b/programs/winemine/Es.rc @@ -24,6 +24,7 @@ LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nadie" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -88,15 +89,3 @@ CAPTION "Juego personalizado" DEFPUSHBUTTON "Aceptar", IDOK, 40, 30, 50, 15 PUSHBUTTON "Cancelar", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Acerca de" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "bajo la licencia LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "Aceptar", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Fi.rc b/programs/winemine/Fi.rc index c1656d3f44c..ee4cbc92330 100644 --- a/programs/winemine/Fi.rc +++ b/programs/winemine/Fi.rc @@ -24,6 +24,7 @@ LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Ei kukaan" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -88,15 +89,3 @@ CAPTION "Mukautettu Peli" DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Peruuta", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Tietoja" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "Licensed under the LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Fr.rc b/programs/winemine/Fr.rc index 4e6a562336d..03252bec264 100644 --- a/programs/winemine/Fr.rc +++ b/programs/winemine/Fr.rc @@ -27,6 +27,7 @@ LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL STRINGTABLE { IDS_APPNAME, "Démineur Wine" IDS_NOBODY, "Anonyme" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -91,15 +92,3 @@ CAPTION "Grille personnalis DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Annuler", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "À propos" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "sous la licence LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/It.rc b/programs/winemine/It.rc index 07f1bdb3f18..214729f363b 100644 --- a/programs/winemine/It.rc +++ b/programs/winemine/It.rc @@ -26,6 +26,7 @@ LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nobody" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -90,15 +91,3 @@ CAPTION "Custom Game" DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Annulla", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Informazioni su WineMine" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "Concesso in licenza LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Ko.rc b/programs/winemine/Ko.rc index 09d51645e47..6f3faf4b902 100644 --- a/programs/winemine/Ko.rc +++ b/programs/winemine/Ko.rc @@ -26,6 +26,7 @@ LANGUAGE LANG_KOREAN, SUBLANG_NEUTRAL STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "¾Æ¹«°³" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -93,16 +94,3 @@ FONT 8, "MS Shell Dlg" DEFPUSHBUTTON "È®ÀÎ", IDOK, 40, 30, 50, 15 PUSHBUTTON "Ãë¼Ò", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Á¤º¸" -FONT 8, "MS Shell Dlg" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "LGPL ¶óÀ̼¾½º¸¦ µû¸¨´Ï´Ù", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "È®ÀÎ", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Makefile.in b/programs/winemine/Makefile.in index c9f11fcff28..64f8599c568 100644 --- a/programs/winemine/Makefile.in +++ b/programs/winemine/Makefile.in @@ -5,6 +5,7 @@ VPATH = @srcdir@ MODULE = winemine.exe APPMODE = -mwindows IMPORTS = user32 gdi32 advapi32 kernel32 +DELAYIMPORTS = shell32 C_SRCS = \ dialog.c \ diff --git a/programs/winemine/Nl.rc b/programs/winemine/Nl.rc index 50c2db9d757..5a97b384c40 100644 --- a/programs/winemine/Nl.rc +++ b/programs/winemine/Nl.rc @@ -23,6 +23,7 @@ LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nobody" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -87,15 +88,3 @@ CAPTION "Aangepast spel" DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Annuleren", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "About" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "dit programma valt onder de LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/No.rc b/programs/winemine/No.rc index a6173a29253..cdf03fb5afc 100644 --- a/programs/winemine/No.rc +++ b/programs/winemine/No.rc @@ -24,6 +24,7 @@ LANGUAGE LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL STRINGTABLE { IDS_APPNAME, "Minesveiper" IDS_NOBODY, "Ingen" + IDS_ABOUT, "Kopirett 2000 tilhører Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -88,16 +89,3 @@ CAPTION "Egendefinert spill" DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Avbryt", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 170, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Om" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Kopirett 2000 tilhører Joshua Thielen", IDIGNORE, 35, 25, 140, 10 - LTEXT "Oversatt av Alexander N. Sørnes i 2005", IDIGNORE, 35, 35, 140, 10 - LTEXT "Lisensiert under LGPL", IDIGNORE, 35, 45, 115, 10 - ICON "MINESVEIPER", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Pl.rc b/programs/winemine/Pl.rc index fa8560535c6..47a277da811 100644 --- a/programs/winemine/Pl.rc +++ b/programs/winemine/Pl.rc @@ -26,6 +26,7 @@ LANGUAGE LANG_POLISH, SUBLANG_DEFAULT STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Anonim" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -90,15 +91,3 @@ CAPTION "Ustawienia U DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Anuluj", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "O Programie" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "Na licencji LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Pt.rc b/programs/winemine/Pt.rc index cc73e8e5522..52f7aeca186 100644 --- a/programs/winemine/Pt.rc +++ b/programs/winemine/Pt.rc @@ -20,16 +20,14 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL +LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Ninguém" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } - -LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN - MENU_WINEMINE MENU DISCARDABLE { POPUP "&Opções" { @@ -52,6 +50,12 @@ MENU_WINEMINE MENU DISCARDABLE LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE +STRINGTABLE { + IDS_APPNAME, "WineMine" + IDS_NOBODY, "Ninguém" + IDS_ABOUT, "Direitos de autor 2000, Joshua Thielen" +} + MENU_WINEMINE MENU DISCARDABLE { POPUP "&Opções" { @@ -135,32 +139,3 @@ CAPTION "Jogo personalizado" DEFPUSHBUTTON "OK", IDOK, 40, 30, 50, 15 PUSHBUTTON "Cancelar", IDCANCEL, 40, 50, 50, 15 } - - -LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Sobre" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "conforme a licença LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} - -LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Sobre" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Direitos de autor 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "conforme a licença LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Ro.rc b/programs/winemine/Ro.rc index c949f6f91ea..e54e681de41 100644 --- a/programs/winemine/Ro.rc +++ b/programs/winemine/Ro.rc @@ -26,6 +26,7 @@ LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nimeni" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -91,16 +92,4 @@ CAPTION "Joc personalizat" PUSHBUTTON "Renunţă", IDCANCEL, 40, 50, 50, 15 } -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Despre" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "LicenÅ£iat sub termenii LicenÅ£ei LGPL", IDIGNORE, 35, 35, 115, 20 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} - #pragma code_page(default) diff --git a/programs/winemine/Ru.rc b/programs/winemine/Ru.rc index ce78bb5eeee..c69e04ab9fa 100644 --- a/programs/winemine/Ru.rc +++ b/programs/winemine/Ru.rc @@ -24,6 +24,7 @@ LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nobody" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -88,15 +89,3 @@ CAPTION " DEFPUSHBUTTON "OK", IDOK, 80, 30, 50, 15 PUSHBUTTON "Îòìåíà", IDCANCEL, 80, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "About" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "ïîä ëèöåíçèåé LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Si.rc b/programs/winemine/Si.rc index 3df27f5f375..d614835bd1c 100644 --- a/programs/winemine/Si.rc +++ b/programs/winemine/Si.rc @@ -24,6 +24,7 @@ LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT STRINGTABLE { IDS_APPNAME, "WineMine" IDS_NOBODY, "Nobody" + IDS_ABOUT, "Copyright 2000 Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -88,15 +89,3 @@ CAPTION "Poljubna igra" DEFPUSHBUTTON "V redu", IDOK, 40, 30, 50, 15 PUSHBUTTON "Preklièi", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "O programu" -{ - LTEXT "Winemine", IDIGNORE, 10, 10, 50, 10 - LTEXT "Copyright 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "under the LGPL", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "OK", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/Tr.rc b/programs/winemine/Tr.rc index 05f23238ddc..f2a12a03e61 100644 --- a/programs/winemine/Tr.rc +++ b/programs/winemine/Tr.rc @@ -24,6 +24,7 @@ LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT STRINGTABLE { IDS_APPNAME, "Wine Mayýn Tarlasý" IDS_NOBODY, "Hiç kimse" + IDS_ABOUT, "Telif hakký 2000, Joshua Thielen" } MENU_WINEMINE MENU DISCARDABLE @@ -88,15 +89,3 @@ CAPTION " DEFPUSHBUTTON "Tamam", IDOK, 40, 30, 50, 15 PUSHBUTTON "Ýptal", IDCANCEL, 40, 50, 50, 15 } - -DLG_ABOUT DIALOG DISCARDABLE 0, 0, 160, 80 -STYLE DS_MODALFRAME | DS_3DLOOK | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_POPUP -CAPTION "Hakkýnda" -{ - LTEXT "Wine Mayýn Tarlasý", IDIGNORE, 10, 10, 80, 10 - LTEXT "Telif hakký 2000, Joshua Thielen", IDIGNORE, 35, 25, 115, 10 - LTEXT "LGPL aktýnda lisanslanmýþtýr", IDIGNORE, 35, 35, 115, 10 - ICON "WINEMINE", IDIGNORE, 10, 25, 20, 20 - DEFPUSHBUTTON "Tamam", IDOK, 50, 60, 60, 15 -} diff --git a/programs/winemine/main.c b/programs/winemine/main.c index b017b4443f6..5e3ab4a923b 100644 --- a/programs/winemine/main.c +++ b/programs/winemine/main.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "main.h" #include "resource.h" @@ -235,8 +236,14 @@ LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) return 0; case IDM_ABOUT: - DialogBox( board.hInst, "DLG_ABOUT", hWnd, AboutDlgProc ); + { + WCHAR appname[256], other[256]; + LoadStringW( board.hInst, IDS_APPNAME, appname, sizeof(appname)/sizeof(WCHAR) ); + LoadStringW( board.hInst, IDS_ABOUT, other, sizeof(other)/sizeof(WCHAR) ); + ShellAboutW( hWnd, appname, other, + LoadImageA( board.hInst, "WINEMINE", IMAGE_ICON, 48, 48, LR_SHARED )); return 0; + } default: WINE_TRACE("Unknown WM_COMMAND command message received\n"); break; diff --git a/programs/winemine/resource.h b/programs/winemine/resource.h index bc95830989e..982c5166ef0 100644 --- a/programs/winemine/resource.h +++ b/programs/winemine/resource.h @@ -47,5 +47,6 @@ #define IDS_APPNAME 1101 #define IDS_NOBODY 1102 +#define IDS_ABOUT 1103 #define IDA_WINEMINE 1201