* Sync up to trunk head (r60691).
[reactos.git] / dll / cpl / intl / languages.c
1 #include "intl.h"
2
3 /* Property page dialog callback */
4 INT_PTR CALLBACK
5 LanguagesPageProc(HWND hwndDlg,
6 UINT uMsg,
7 WPARAM wParam,
8 LPARAM lParam)
9 {
10 SHELLEXECUTEINFO shInputDll;
11
12 switch (uMsg)
13 {
14 case WM_INITDIALOG:
15 break;
16
17 case WM_COMMAND:
18 switch (LOWORD(wParam))
19 {
20 /* If "detail" button pressed */
21 case IDC_DETAIL_BUTTON:
22 if (HIWORD(wParam) == BN_CLICKED)
23 {
24 memset(&shInputDll, 0x0, sizeof(SHELLEXECUTEINFO));
25 shInputDll.cbSize = sizeof(shInputDll);
26 shInputDll.hwnd = hwndDlg;
27 shInputDll.lpVerb = _T("open");
28 shInputDll.lpFile = _T("RunDll32.exe");
29 shInputDll.lpParameters = _T("shell32.dll,Control_RunDLL input.dll");
30 if (ShellExecuteEx(&shInputDll) == 0)
31 {
32 MessageBox(NULL,
33 _T("Can't start input.dll"),
34 _T("Error"),
35 MB_OK | MB_ICONERROR);
36 }
37 }
38 break;
39 }
40 break;
41 }
42 return FALSE;
43 }
44
45 /* EOF */