Author: greatlrd
Date: Sat Jul 14 18:52:10 2007
New Revision: 27660
URL: http://svn.reactos.org/svn/reactos?rev=27660&view=rev
Log:
add activate of screensaver when they are being selected.
we do not set or read register value for it yet, so defualt is the screensaver offline until u go into desk.cpl and select a screensaver.
Modified:
trunk/reactos/dll/cpl/desk/screensaver.c
Modified: trunk/reactos/dll/cpl/desk/screensaver.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/screensaver.c…
==============================================================================
--- trunk/reactos/dll/cpl/desk/screensaver.c (original)
+++ trunk/reactos/dll/cpl/desk/screensaver.c Sat Jul 14 18:52:10 2007
@@ -709,12 +709,16 @@
case PSN_SETACTIVE:
{
+ /* activate screen saver support */
+ SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, TRUE, 0, SPIF_SENDCHANGE);
SetScreenSaverPreviewBox(hwndDlg, pGlobalData);
break;
}
case PSN_KILLACTIVE:
{
+ /* Disable screensaver support */
+ SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, FALSE, 0, SPIF_SENDCHANGE);
if (pGlobalData->PrevWindowPi.hProcess)
{
TerminateProcess(pGlobalData->PrevWindowPi.hProcess, 0);
Author: greatlrd
Date: Sat Jul 14 17:56:24 2007
New Revision: 27656
URL: http://svn.reactos.org/svn/reactos?rev=27656&view=rev
Log:
fixing the limit of hover maxium time for SPI_SETMOUSEHOVERTIME
see msdn : http://msdn2.microsoft.com/en-us/library/ms724947.aspx
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c Sat Jul 14 17:56:24 2007
@@ -1062,13 +1062,24 @@
*((UINT*)pvParam) = CurInfo->MouseHoverTime;
break;
case SPI_SETMOUSEHOVERTIME:
+ /* see http://msdn2.microsoft.com/en-us/library/ms724947.aspx
+ * copy text from it, if some agument why xp and 2003 behovir diffent
+ * only if they do not have SP install
+ * " Windows Server 2003 and Windows XP: The operating system does not
+ * enforce the use of USER_TIMER_MAXIMUM and USER_TIMER_MINIMUM until
+ * Windows Server 2003 SP1 and Windows XP SP2 "
+ */
CurInfo = IntGetSysCursorInfo(WinStaObject);
CurInfo->MouseHoverTime = uiParam;
if(CurInfo->MouseHoverTime < USER_TIMER_MINIMUM)
{
CurInfo->MouseHoverTime = USER_TIMER_MINIMUM;
}
- /* FIXME limit the maximum time to 1000 ms? */
+ if(CurInfo->MouseHoverTime > USER_TIMER_MAXIMUM)
+ {
+ CurInfo->MouseHoverTime = USER_TIMER_MAXIMUM;
+ }
+
break;
case SPI_GETMOUSEHOVERWIDTH:
CurInfo = IntGetSysCursorInfo(WinStaObject);