mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
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. svn path=/trunk/; revision=27660
This commit is contained in:
parent
b2272ba67c
commit
06fbf99e3f
1 changed files with 4 additions and 0 deletions
|
@ -709,12 +709,16 @@ ScreenSaverPageProc(HWND hwndDlg,
|
||||||
|
|
||||||
case PSN_SETACTIVE:
|
case PSN_SETACTIVE:
|
||||||
{
|
{
|
||||||
|
/* activate screen saver support */
|
||||||
|
SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, TRUE, 0, SPIF_SENDCHANGE);
|
||||||
SetScreenSaverPreviewBox(hwndDlg, pGlobalData);
|
SetScreenSaverPreviewBox(hwndDlg, pGlobalData);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case PSN_KILLACTIVE:
|
case PSN_KILLACTIVE:
|
||||||
{
|
{
|
||||||
|
/* Disable screensaver support */
|
||||||
|
SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, FALSE, 0, SPIF_SENDCHANGE);
|
||||||
if (pGlobalData->PrevWindowPi.hProcess)
|
if (pGlobalData->PrevWindowPi.hProcess)
|
||||||
{
|
{
|
||||||
TerminateProcess(pGlobalData->PrevWindowPi.hProcess, 0);
|
TerminateProcess(pGlobalData->PrevWindowPi.hProcess, 0);
|
||||||
|
|
Loading…
Reference in a new issue