HAHAHA,我来回答,捡分啦.<br>//隐藏<br>procedure TForm1.btHideClick(Sender: TObject);<br>var<br> Rgn : hRgn;<br>begin<br> {Hide the start button}<br> Rgn := CreateRectRgn(0, 0, 0, 0);<br> SetWindowRgn(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0,'Button',nil),Rgn, true);<br><br>end;<br>//显示<br>procedure TForm1.btShowClick(Sender: TObject);<br>begin<br> SetWindowRgn(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0,'Button',nil),0,true);<br>end;<br>//失效<br>procedure TForm1.btDisabledClick(Sender: TObject);<br>begin<br> EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0, 'Button', nil),false);<br>end;<br><br>//有效<br>procedure TForm1.btEnabledClick(Sender: TObject);<br>begin<br> EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0,'Button',nil),true);<br>end;<br>