T
Tell_me
Unregistered / Unconfirmed
GUEST, unregistred user!
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],null);// 我就出错在第二个参数上,过不去。<br> showwindow(wndhandle,sw_hide); // 请问大家我要怎么做呀?<br> end;<br><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],null);<br> showwindow(wndhandle,sw_restore);<br> end;<br><br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> hidetaskbar;<br>end;<br><br>procedure TForm1.Button2Click(Sender: TObject);<br>begin<br> showtaskbar;<br>end;<br>