下面是gcq给我的回复,希望各位评价!<br><br>procedure hideTaskbar; //隐藏 <br>var<br>wndHandle : THandle;<br>wndClass : array[0..50] of Char;<br>begin<br>StrPCopy(@wndClass[0], 'Shell_TrayWnd');<br>wndHandle := FindWindow(@wndClass[0], nil);<br>ShowWindow(wndHandle, SW_HIDE);<br>End;<br>procedure showTaskbar; //显示<br>var<br>wndHandle : THandle;<br>wndClass : array[0..50] of Char;<br>begin<br>StrPCopy(@wndClass[0], 'Shell_TrayWnd');<br>wndHandle := FindWindow(@wndClass[0], nil);<br>ShowWindow(wndHandle, SW_RESTORE);<br>end;<br> <br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br>SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, nil, 0); //屏蔽系统键<br> hidetaskbar;<br>end;<br> <br>procedure TForm1.Button2Click(Sender: TObject);<br>begin<br>SystemParametersInfo( SPI_SCREENSAVERRUNNING, 0,nil, 0); //恢复系统键<br> showTaskbar;<br>end;<br> <br><br>还有<br>在implementation后添加声明:<br>function RegisterServiceProcess(dwProcessID, dwType: Integer): Integer; stdcall; external 'KERNEL32.DLL';<br> <br>RegisterServiceProcess(GetCurrentProcessID, 1);//隐藏<br>RegisterServiceProcess(GetCurrentProcessID, 0);//显示<br>用ALT+DEL+CTRL看不见该程序!不知对你有没有用!