樓上地代碼無法實現,<br>我地代碼如下:<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> aHandle:THandle;<br> ExtendedStyle:integer;<br>begin<br> aHandle:=FindWindow(nil,'Program Title);<br> IF aHandle>0 then<br> begin<br> ShowWindow(aHandle,SW_HIDE);<br> ExtendedStyle := GetWindowLong (aHandle, GWL_EXSTYLE);<br> SetWindowLong(aHandle, GWL_EXSTYLE, ExtendedStyle OR WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW and not WS_EX_NOPARENTNOTIFY);<br> showmessage('OK');<br> end;