Author: ekohl
Date: Sun Aug 12 00:53:52 2007
New Revision: 28293
URL:
http://svn.reactos.org/svn/reactos?rev=28293&view=rev
Log:
Add high contrast settings
Modified:
trunk/reactos/dll/cpl/access/access.rbuild
trunk/reactos/dll/cpl/access/display.c
trunk/reactos/dll/cpl/access/lang/cs-CZ.rc
trunk/reactos/dll/cpl/access/lang/de-DE.rc
trunk/reactos/dll/cpl/access/lang/en-US.rc
trunk/reactos/dll/cpl/access/lang/es-ES.rc
trunk/reactos/dll/cpl/access/lang/fr-FR.rc
trunk/reactos/dll/cpl/access/lang/hu-HU.rc
trunk/reactos/dll/cpl/access/lang/id-ID.rc
trunk/reactos/dll/cpl/access/lang/it-IT.rc
trunk/reactos/dll/cpl/access/lang/ja-JP.rc
trunk/reactos/dll/cpl/access/lang/nl-NL.rc
trunk/reactos/dll/cpl/access/lang/pl-PL.rc
trunk/reactos/dll/cpl/access/lang/ru-RU.rc
trunk/reactos/dll/cpl/access/resource.h
Modified: trunk/reactos/dll/cpl/access/access.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/access.rbui…
==============================================================================
--- trunk/reactos/dll/cpl/access/access.rbuild (original)
+++ trunk/reactos/dll/cpl/access/access.rbuild Sun Aug 12 00:53:52 2007
@@ -9,8 +9,8 @@
<define name="_WIN32_WINNT">0x501</define>
<library>kernel32</library>
<library>user32</library>
+ <library>advapi32</library>
<library>comctl32</library>
- <library>msvcrt</library>
<file>access.c</file>
<file>display.c</file>
<file>general.c</file>
Modified: trunk/reactos/dll/cpl/access/display.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/display.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/access/display.c (original)
+++ trunk/reactos/dll/cpl/access/display.c Sun Aug 12 00:53:52 2007
@@ -1,8 +1,7 @@
-/* $Id$
- *
+/*
* PROJECT: ReactOS System Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/system/advanced.c
+ * FILE: dll/cpl/access/display.c
* PURPOSE: Memory, start-up and profiles settings
* COPYRIGHT: Copyright 2004 Johannes Anderwald (j_anderw(a)sbox.tugraz.at)
* UPDATE HISTORY:
@@ -10,8 +9,126 @@
*/
#include <windows.h>
#include <stdlib.h>
+#include <commctrl.h>
+#include <prsht.h>
+#include <tchar.h>
#include "resource.h"
#include "access.h"
+
+typedef struct _GLOBAL_DATA
+{
+ HIGHCONTRAST highContrast;
+} GLOBAL_DATA, *PGLOBAL_DATA;
+
+
+static VOID
+FillColorSchemeComboBox(HWND hwnd)
+{
+ TCHAR szValue[128];
+ DWORD dwDisposition;
+ DWORD dwLength;
+ HKEY hKey;
+ LONG lError;
+ INT i;
+
+ lError = RegCreateKeyEx(HKEY_CURRENT_USER,
+ _T("Control Panel\\Appearance\\Schemes"),
+ 0,
+ NULL,
+ REG_OPTION_NON_VOLATILE,
+ KEY_ENUMERATE_SUB_KEYS | KEY_EXECUTE | KEY_QUERY_VALUE,
+ NULL,
+ &hKey,
+ &dwDisposition);
+ if (lError != ERROR_SUCCESS)
+ return;
+
+ for (i = 0; ; i++)
+ {
+ dwLength = 128;
+ lError = RegEnumValue(hKey,
+ i,
+ szValue,
+ &dwLength, NULL, NULL, NULL, NULL);
+ if (lError == ERROR_NO_MORE_ITEMS)
+ break;
+
+ SendMessage(hwnd,
+ CB_ADDSTRING,
+ 0,
+ (LPARAM)szValue);
+ }
+
+ RegCloseKey(hKey);
+}
+
+
+INT_PTR CALLBACK
+HighContrastDlgProc(HWND hwndDlg,
+ UINT uMsg,
+ WPARAM wParam,
+ LPARAM lParam)
+{
+ PGLOBAL_DATA pGlobalData;
+
+ pGlobalData = (PGLOBAL_DATA)GetWindowLongPtr(hwndDlg, DWLP_USER);
+
+ switch (uMsg)
+ {
+ case WM_INITDIALOG:
+ pGlobalData = (PGLOBAL_DATA)lParam;
+ SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pGlobalData);
+
+ CheckDlgButton(hwndDlg,
+ IDC_CONTRAST_ACTIVATE_CHECK,
+ pGlobalData->highContrast.dwFlags & HCF_HOTKEYACTIVE ?
BST_CHECKED : BST_UNCHECKED);
+
+ FillColorSchemeComboBox(GetDlgItem(hwndDlg, IDC_CONTRAST_COMBO));
+
+ SendDlgItemMessage(hwndDlg,
+ IDC_CONTRAST_COMBO,
+ CB_SELECTSTRING,
+ -1,
+ (LPARAM)pGlobalData->highContrast.lpszDefaultScheme);
+ break;
+
+ case WM_COMMAND:
+ switch (LOWORD(wParam))
+ {
+ case IDC_CONTRAST_ACTIVATE_CHECK:
+ pGlobalData->highContrast.dwFlags ^= HCF_HOTKEYACTIVE;
+ break;
+
+ case IDC_CONTRAST_COMBO:
+ if (HIWORD(wParam) == CBN_SELCHANGE)
+ {
+ INT nSel;
+
+ nSel = SendDlgItemMessage(hwndDlg, IDC_CONTRAST_COMBO,
+ CB_GETCURSEL, 0, 0);
+ SendDlgItemMessage(hwndDlg, IDC_CONTRAST_COMBO,
+ CB_GETLBTEXT, nSel,
+
(LPARAM)pGlobalData->highContrast.lpszDefaultScheme);
+ }
+ break;
+
+ case IDOK:
+ EndDialog(hwndDlg, TRUE);
+ break;
+
+ case IDCANCEL:
+ EndDialog(hwndDlg, FALSE);
+ break;
+
+ default:
+ break;
+ }
+ break;
+ }
+
+ return FALSE;
+}
+
/* Property page dialog callback */
INT_PTR CALLBACK
@@ -20,26 +137,69 @@
WPARAM wParam,
LPARAM lParam)
{
- UNREFERENCED_PARAMETER(lParam);
- UNREFERENCED_PARAMETER(hwndDlg);
+ PGLOBAL_DATA pGlobalData;
+ LPPSHNOTIFY lppsn;
+
+ pGlobalData = (PGLOBAL_DATA)GetWindowLongPtr(hwndDlg, DWLP_USER);
switch (uMsg)
{
case WM_INITDIALOG:
- break;
+ pGlobalData = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(GLOBAL_DATA));
+ if (pGlobalData == NULL)
+ return FALSE;
+
+ SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pGlobalData);
+
+ /* Get sticky keys information */
+ pGlobalData->highContrast.cbSize = sizeof(HIGHCONTRAST);
+ SystemParametersInfo(SPI_GETHIGHCONTRAST,
+ sizeof(HIGHCONTRAST),
+ &pGlobalData->highContrast,
+ 0);
+
+ /* Set the checkbox */
+ CheckDlgButton(hwndDlg,
+ IDC_CONTRAST_BOX,
+ pGlobalData->highContrast.dwFlags & HCF_HIGHCONTRASTON
? BST_CHECKED : BST_UNCHECKED);
+ return TRUE;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDC_CONTRAST_BOX:
+ pGlobalData->highContrast.dwFlags ^= HCF_HIGHCONTRASTON;
+ PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
break;
case IDC_CONTRAST_BUTTON:
+ if (DialogBoxParam(hApplet,
+ MAKEINTRESOURCE(IDD_CONTRASTOPTIONS),
+ hwndDlg,
+ (DLGPROC)HighContrastDlgProc,
+ (LPARAM)pGlobalData))
+ PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
break;
default:
break;
}
+ break;
+
+ case WM_NOTIFY:
+ lppsn = (LPPSHNOTIFY)lParam;
+ if (lppsn->hdr.code == PSN_APPLY)
+ {
+ SystemParametersInfo(SPI_SETHIGHCONTRAST,
+ sizeof(HIGHCONTRAST),
+ &pGlobalData->highContrast,
+ SPIF_UPDATEINIFILE | SPIF_SENDCHANGE /*0*/);
+ return TRUE;
+ }
+ break;
+
+ case WM_DESTROY:
+ HeapFree(GetProcessHeap(), 0, pGlobalData);
break;
}
Modified: trunk/reactos/dll/cpl/access/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/cs-CZ.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/cs-CZ.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/cs-CZ.rc Sun Aug 12 00:53:52 2007
@@ -139,6 +139,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Monosti usnadnìní"
Modified: trunk/reactos/dll/cpl/access/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/de-DE.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/de-DE.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/de-DE.rc Sun Aug 12 00:53:52 2007
@@ -141,6 +141,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Bedienbarkeit"
Modified: trunk/reactos/dll/cpl/access/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/en-US.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/en-US.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/en-US.rc Sun Aug 12 00:53:52 2007
@@ -138,6 +138,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Accessibility"
Modified: trunk/reactos/dll/cpl/access/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/es-ES.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/es-ES.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/es-ES.rc Sun Aug 12 00:53:52 2007
@@ -142,6 +142,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Accessibilidad"
Modified: trunk/reactos/dll/cpl/access/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/fr-FR.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/fr-FR.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/fr-FR.rc Sun Aug 12 00:53:52 2007
@@ -140,6 +140,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Accessibilité"
Modified: trunk/reactos/dll/cpl/access/lang/hu-HU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/hu-HU.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/hu-HU.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/hu-HU.rc Sun Aug 12 00:53:52 2007
@@ -140,6 +140,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Kisegítõ lehetõségek"
Modified: trunk/reactos/dll/cpl/access/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/id-ID.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/id-ID.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/id-ID.rc Sun Aug 12 00:53:52 2007
@@ -141,6 +141,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Aksesibilitas"
Modified: trunk/reactos/dll/cpl/access/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/it-IT.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/it-IT.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/it-IT.rc Sun Aug 12 00:53:52 2007
@@ -139,6 +139,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Accessibility"
Modified: trunk/reactos/dll/cpl/access/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/ja-JP.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/ja-JP.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/ja-JP.rc Sun Aug 12 00:53:52 2007
@@ -139,6 +139,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "[U[â"
Modified: trunk/reactos/dll/cpl/access/lang/nl-NL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/nl-NL.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/nl-NL.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/nl-NL.rc Sun Aug 12 00:53:52 2007
@@ -141,6 +141,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Toegankelijkheidsopties"
Modified: trunk/reactos/dll/cpl/access/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/pl-PL.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/pl-PL.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/pl-PL.rc Sun Aug 12 00:53:52 2007
@@ -142,6 +142,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "U³atwienia dostêpu"
Modified: trunk/reactos/dll/cpl/access/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/lang/ru-RU.…
==============================================================================
--- trunk/reactos/dll/cpl/access/lang/ru-RU.rc (original)
+++ trunk/reactos/dll/cpl/access/lang/ru-RU.rc Sun Aug 12 00:53:52 2007
@@ -139,6 +139,25 @@
END
+IDD_CONTRASTOPTIONS DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
+STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "High Contrast Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ GROUPBOX "Keyboard
shortcut",-1,PROPSHEETPADDING(1),LABELLINE(1),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(6)+PROPSHEETPADDING(1)
+ LTEXT "The shortcut for High Contrast is: \nPress <Left Alt+Left Shift+Print
Screen>.",-1,PROPSHEETPADDING(4)+ICONSIZE,LABELLINE(2),PROPSHEETWIDTH-PROPSHEETPADDING(6)-ICONSIZE,LABELLINE(3)
+ AUTOCHECKBOX "&Use
shortcut",IDC_CONTRAST_ACTIVATE_CHECK,PROPSHEETPADDING(4),LABELLINE(5)+2,PROPSHEETPADDING(17)+4,14
+
+ GROUPBOX "High Contrast Color
Scheme",-1,PROPSHEETPADDING(1),LABELLINE(9),PROPSHEETWIDTH-PROPSHEETPADDING(2),LABELLINE(4)+PROPSHEETPADDING(1)
+ LTEXT "Current Color
Scheme:",-1,PROPSHEETPADDING(2),LABELLINE(10)+2,PROPSHEETWIDTH-PROPSHEETPADDING(4),LABELLINE(1)
+ COMBOBOX IDC_CONTRAST_COMBO, PROPSHEETPADDING(2), LABELLINE(11)+2,
PROPSHEETWIDTH-PROPSHEETPADDING(4), LABELLINE(6),
+ CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_VISIBLE | WS_TABSTOP
+
+ PUSHBUTTON "OK", IDOK, PROPSHEETWIDTH-111, PROPSHEETHEIGHT-21, 50, 14
+ PUSHBUTTON "Cancel", IDCANCEL, PROPSHEETWIDTH-57, PROPSHEETHEIGHT-21, 50, 14
+END
+
+
STRINGTABLE
BEGIN
IDS_CPLSYSTEMNAME "Ñïåöèàëüíûå âîçìîæíîñòè"
Modified: trunk/reactos/dll/cpl/access/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/resource.h?…
==============================================================================
--- trunk/reactos/dll/cpl/access/resource.h (original)
+++ trunk/reactos/dll/cpl/access/resource.h Sun Aug 12 00:53:52 2007
@@ -23,6 +23,8 @@
#define IDD_STICKYKEYSOPTIONS 105
#define IDD_FILTERKEYSOPTIONS 106
#define IDD_TOGGLEKEYSOPTIONS 107
+
+#define IDD_CONTRASTOPTIONS 108
#define IDS_CPLSYSTEMNAME 1001
#define IDS_CPLSYSTEMDESCRIPTION 2001
@@ -68,6 +70,9 @@
#define IDC_TOGGLE_ACTIVATE_CHECK 246
+#define IDC_CONTRAST_ACTIVATE_CHECK 260
+#define IDC_CONTRAST_COMBO 261
+
#endif /* __CPL_RESOURCE_H */
/* EOF */