Alexey Zavyalov: Add functionally Numbers, Currency, Time, Date tabs. Fix some bugs.
[reactos.git] / reactos / dll / cpl / intl_new / langs.c
1 /*
2 * PROJECT: ReactOS International Control Panel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: dll/cpl/intl/langs.c
5 * PURPOSE: Extra parameters page
6 * PROGRAMMERS: Alexey Zavyalov (gen_x@mail.ru)
7 */
8
9 /* INCLUDES *****************************************************************/
10
11 #include <windows.h>
12 #include <commctrl.h>
13 #include <shellapi.h>
14 #include <cpl.h>
15
16 #include "intl.h"
17 #include "resource.h"
18
19 /* FUNCTIONS ****************************************************************/
20
21 /* Languages Parameters page dialog callback */
22 INT_PTR
23 CALLBACK
24 LangsOptsProc(HWND hwndDlg,
25 UINT uMsg,
26 WPARAM wParam,
27 LPARAM lParam)
28 {
29 SHELLEXECUTEINFOW shInputDll;
30
31 UNREFERENCED_PARAMETER(wParam);
32 switch(uMsg)
33 {
34 case WM_INITDIALOG:
35
36 break;
37
38 case WM_COMMAND:
39 switch (LOWORD(wParam))
40 {
41 /* If "detail" button pressed */
42 case IDC_DETAIL_BUTTON:
43 if(HIWORD(wParam)==BN_CLICKED)
44 {
45 memset(&shInputDll, 0x0, sizeof(SHELLEXECUTEINFOW));
46 shInputDll.cbSize = sizeof(shInputDll);
47 shInputDll.hwnd = hwndDlg;
48 shInputDll.lpVerb = L"open";
49 shInputDll.lpFile = L"RunDll32.exe";
50 shInputDll.lpParameters = L"shell32.dll,Control_RunDLL input.dll";
51 if(ShellExecuteExW(&shInputDll)==0)
52 {
53 MessageBox(NULL, L"Can't start input.dll", L"Error",
54 MB_OK | MB_ICONERROR);
55 }
56 }
57
58 break;
59 }
60
61
62 break;
63
64 case WM_NOTIFY:
65 {
66 LPNMHDR Lpnm = (LPNMHDR)lParam;
67 /* If push apply button */
68 if (Lpnm->code == (UINT)PSN_APPLY)
69 {
70 // TODO: Implement
71 }
72 }
73 break;
74 }
75 return FALSE;
76 }
77
78 /* EOF */