日期:2013-09-03  浏览次数:21067 次

procedure TForm1.Button1Click(Sender: TObject);
begin
{关闭}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
0,
nil,
0);
{打开}
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE,
1,
nil,
0);
end;