日期:2008-09-27  浏览次数:21276 次

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