- Spanish localization by Javier Remacha <remialdo at gmail dot com>
[reactos.git] / reactos / dll / cpl / input / misc.c
1 /*
2 * ReactOS
3 * Copyright (C) 2007 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 /*
20 *
21 * PROJECT: input.dll
22 * FILE: dll/win32/input/misc.c
23 * PURPOSE: input.dll
24 * PROGRAMMER: Dmitry Chapyshev (lentind@yandex.ru)
25 * UPDATE HISTORY:
26 * 06-09-2007 Created
27 */
28
29 #include "resource.h"
30 #include "input.h"
31
32 VOID
33 CreateKeyboardLayoutList(HWND hWnd)
34 {
35 TCHAR Layout[256];
36 INT Index;
37 UINT loIndex;
38
39 for (loIndex = BEGIN_LAYOUT; loIndex <= END_LAYOUT; loIndex++)
40 {
41 LoadString(hApplet,
42 loIndex,
43 Layout,
44 256);
45
46 if (_tcslen(Layout) > 0)
47 {
48 Index = (int) SendMessage(hWnd,
49 CB_ADDSTRING,
50 0,
51 (LPARAM)Layout);
52
53 SendMessage(hWnd,
54 CB_SETITEMDATA,
55 Index,
56 (LPARAM)loIndex);
57 }
58 }
59 }
60
61 /* EOF */