Author: mkupfer
Date: Sun Oct 4 12:50:18 2009
New Revision: 43281
URL:
http://svn.reactos.org/svn/reactos?rev=43281&view=rev
Log:
- DragFullWindow property changable via desktop settings / effects
- TODO: adapt desk.cpl to new sysparams implementation
Modified:
trunk/reactos/dll/cpl/desk/appearance.c
trunk/reactos/dll/cpl/desk/appearance.h
trunk/reactos/dll/cpl/desk/effappdlg.c
trunk/reactos/dll/cpl/desk/lang/de-DE.rc
trunk/reactos/dll/cpl/desk/lang/en-US.rc
Modified: trunk/reactos/dll/cpl/desk/appearance.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/appearance.c?…
==============================================================================
--- trunk/reactos/dll/cpl/desk/appearance.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/appearance.c [iso-8859-1] Sun Oct 4 12:50:18 2009
@@ -138,8 +138,12 @@
g->Theme.Effects.bTooltipAnimation = g->Theme.Effects.bMenuAnimation;
g->Theme.Effects.bTooltipFade = g->Theme.Effects.bMenuFade;
+ /* show content of windows during dragging */
+ //SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, g->Theme.Effects.bDragFullWindows,
NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
+ SystemParametersInfoW(SPI_GETDRAGFULLWINDOWS, 0,
&g->Theme.Effects.bDragFullWindows, 0);
+
/* "Hide underlined letters for keyboard navigation until I press the Alt
key" */
- SystemParametersInfo(SPI_GETKEYBOARDCUES, sizeof(BOOL),
&g->Theme.Effects.bKeyboardCues, 0);
+ //SystemParametersInfo(SPI_GETKEYBOARDCUES, sizeof(BOOL),
&g->Theme.Effects.bKeyboardCues, 0);
}
@@ -359,7 +363,8 @@
*/
g->Theme.Effects.bTooltipAnimation = g->Theme.Effects.bMenuAnimation;
g->Theme.Effects.bTooltipFade = g->Theme.Effects.bMenuFade;
- UPDATE_USERPREF(KEYBOARDCUES, &g->Theme.Effects.bKeyboardCues);
+ SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, g->Theme.Effects.bDragFullWindows,
(PVOID)&g->Theme.Effects.bDragFullWindows, SPIF_UPDATEINIFILE|SPIF_SENDCHANGE);
+ //UPDATE_USERPREF(KEYBOARDCUES, &g->Theme.Effects.bKeyboardCues);
//UPDATE_USERPREF(ACTIVEWINDOWTRACKING,
&g->Theme.Effects.bActiveWindowTracking);
UPDATE_USERPREF(MENUANIMATION, &g->Theme.Effects.bMenuAnimation);
//UPDATE_USERPREF(COMBOBOXANIMATION, &g->Theme.Effects.bComboBoxAnimation);
@@ -536,6 +541,7 @@
i = SendDlgItemMessage(hwndDlg, IDC_APPEARANCE_COLORSCHEME, CB_GETCURSEL, 0, 0);
g->Theme.Id = SendDlgItemMessage(hwndDlg, IDC_APPEARANCE_COLORSCHEME,
CB_GETITEMDATA, (WPARAM)i, 0);
LoadThemeFromReg(g);
+ //SendDlgItemMessage(hwndDlg, IDC_APPEARANCE_PREVIEW, WM_PAINT, 0, 0);
}
break;
Modified: trunk/reactos/dll/cpl/desk/appearance.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/appearance.h?…
==============================================================================
--- trunk/reactos/dll/cpl/desk/appearance.h [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/appearance.h [iso-8859-1] Sun Oct 4 12:50:18 2009
@@ -49,6 +49,7 @@
BOOL bCursorShadow;
BOOL bUiEffects;
BOOL bFontSmoothing;
+ BOOL bDragFullWindows;
UINT uiFontSmoothingType;
} EFFECTS;
Modified: trunk/reactos/dll/cpl/desk/effappdlg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/effappdlg.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/desk/effappdlg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/effappdlg.c [iso-8859-1] Sun Oct 4 12:50:18 2009
@@ -25,7 +25,10 @@
SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_ANIMATIONTYPE, CB_SETCURSEL,
(WPARAM)g->ThemeAdv.Effects.bMenuFade, 0);
state = SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_KEYBOARDCUES, BM_GETCHECK, 0,
0);
- g->ThemeAdv.Effects.bKeyboardCues = (state == BST_CHECKED) ? FALSE : TRUE;
+ g->ThemeAdv.Effects.bKeyboardCues = (state == BST_CHECKED) ? TRUE : FALSE;
+ state = SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_DRAGFULLWINDOWS, BM_GETCHECK,
0, 0);
+ g->ThemeAdv.Effects.bDragFullWindows = (state == BST_CHECKED) ? TRUE : FALSE;
+
}
@@ -62,8 +65,11 @@
state = g->ThemeAdv.Effects.bMenuAnimation ? BST_CHECKED : BST_UNCHECKED;
SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_ANIMATION, BM_SETCHECK, state, 0);
- state = g->ThemeAdv.Effects.bKeyboardCues ? BST_UNCHECKED : BST_CHECKED;
+ state = g->ThemeAdv.Effects.bKeyboardCues ? BST_CHECKED : BST_UNCHECKED;
SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_KEYBOARDCUES, BM_SETCHECK, state, 0);
+
+ state = g->ThemeAdv.Effects.bDragFullWindows ? BST_CHECKED : BST_UNCHECKED;
+ SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_DRAGFULLWINDOWS, BM_SETCHECK, state,
0);
/* Update the controls */
UpdateControls(hwndDlg, g);
@@ -109,6 +115,7 @@
case IDC_EFFAPPEARANCE_ANIMATION:
case IDC_EFFAPPEARANCE_KEYBOARDCUES:
+ case IDC_EFFAPPEARANCE_DRAGFULLWINDOWS:
if (HIWORD(wParam) == BN_CLICKED)
{
UpdateControls(hwndDlg, g);
Modified: trunk/reactos/dll/cpl/desk/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/lang/de-DE.rc…
==============================================================================
--- trunk/reactos/dll/cpl/desk/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/lang/de-DE.rc [iso-8859-1] Sun Oct 4 12:50:18 2009
@@ -110,9 +110,9 @@
CONTROL "Ve&rwende große
Icons",IDC_EFFAPPEARANCE_LARGEICONS,"button",
BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED, 10, 80, 285, 19
CONTROL "Zeige
Menüsch&atten",IDC_EFFAPPEARANCE_SETDROPSHADOW,"button",
- BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED, 10, 95, 285, 19
+ BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED, 10, 95, 285, 19
CONTROL "Zeige &Fensterinhalt beim
Verschieben",IDC_EFFAPPEARANCE_DRAGFULLWINDOWS,"button",
- BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED, 10, 110, 285, 19
+ BS_AUTOCHECKBOX | WS_TABSTOP, 10, 110, 285, 19
CONTROL "Ver&stecke Unterstrich der Tastaturnavigation bis zum Druck
der Alt-Taste",IDC_EFFAPPEARANCE_KEYBOARDCUES,"button",
BS_AUTOCHECKBOX | WS_TABSTOP, 10, 125, 250, 19
PUSHBUTTON "Abbrechen", IDCANCEL, 226, 165, 50, 14
Modified: trunk/reactos/dll/cpl/desk/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/lang/en-US.rc…
==============================================================================
--- trunk/reactos/dll/cpl/desk/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/lang/en-US.rc [iso-8859-1] Sun Oct 4 12:50:18 2009
@@ -114,7 +114,7 @@
CONTROL "Show sh&adows under
menus",IDC_EFFAPPEARANCE_SETDROPSHADOW,"button",
BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED, 10, 95, 285, 19
CONTROL "Show &window contents while
dragging",IDC_EFFAPPEARANCE_DRAGFULLWINDOWS,"button",
- BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED, 10, 110, 285, 19
+ BS_AUTOCHECKBOX | WS_TABSTOP, 10, 110, 285, 19
CONTROL "&Hide underlined letters for keyboard navigation until I
press the Alt key",IDC_EFFAPPEARANCE_KEYBOARDCUES,"button",
BS_AUTOCHECKBOX | WS_TABSTOP, 10, 125, 285, 19
PUSHBUTTON "Cancel", IDCANCEL, 226, 165, 50, 14