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