Added a simple test set for window classes.
[wine/multimedia.git] / programs / progman / license.c
blob0ba005352441f681418a0d47afb4d463b24bd945
1 /*
2 * Copyright 1996 Ulrich Schmid
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #include "windows.h"
20 #include "license.h"
22 static LICENSE* SelectLanguage(LPCSTR Language)
24 #if 0
25 if (!lstrcmp(Language, "Cz")) return(&WineLicense_Cz);
26 if (!lstrcmp(Language, "Da")) return(&WineLicense_Da);
27 if (!lstrcmp(Language, "De")) return(&WineLicense_De);
28 if (!lstrcmp(Language, "En")) return(&WineLicense_En);
29 if (!lstrcmp(Language, "Eo")) return(&WineLicense_Eo);
30 if (!lstrcmp(Language, "Es")) return(&WineLicense_Es);
31 if (!lstrcmp(Language, "Fi")) return(&WineLicense_Fi);
32 if (!lstrcmp(Language, "Fr")) return(&WineLicense_Fr);
33 if (!lstrcmp(Language, "Hu")) return(&WineLicense_Hu);
34 if (!lstrcmp(Language, "It")) return(&WineLicense_It);
35 if (!lstrcmp(Language, "Ko")) return(&WineLicense_Ko);
36 if (!lstrcmp(Language, "No")) return(&WineLicense_No);
37 if (!lstrcmp(Language, "Pl")) return(&WineLicense_Pl);
38 if (!lstrcmp(Language, "Po")) return(&WineLicense_Po);
39 if (!lstrcmp(Language, "Va")) return(&WineLicense_Va);
40 #endif
41 return(&WineLicense_En);
44 VOID WineLicense(HWND Wnd, LPCSTR Language)
46 LICENSE *License = SelectLanguage(Language);
48 MessageBox(Wnd, License->License, License->LicenseCaption,
49 MB_ICONINFORMATION | MB_OK);
52 VOID WineWarranty(HWND Wnd, LPCSTR Language)
54 LICENSE *License = SelectLanguage(Language);
56 MessageBox(Wnd, License->Warranty, License->WarrantyCaption,
57 MB_ICONEXCLAMATION | MB_OK);