S
shangjintong
Unregistered / Unconfirmed
GUEST, unregistred user!
Form1是工具栏,我用如下语句想隐藏他,但不能象任务栏那样自动隐藏<br>procedure TForm1.N674Click(Sender: TObject);<br>var<br> a:APPBARDATA;<br>begin<br> a.cbSize := Sizeof(a);<br> a.hWnd:= Form1.Handle;<br> a.uEdge:=ABE_TOP ;<br>// case SHAppBarMessage(ABM_GETSTATE,a) of<br> a.uCallbackMessage:=0;<br><br> if SHAppBarMessage(ABM_GETAUTOHIDEBAR,a)>0 then<br> ShowMessage('exist')<br> else begin<br> a.lParam:=LParam(True);<br> if SHAppBarMessage(ABM_SETAUTOHIDEBAR,a)=1 then<br> SHAppBarMessage(ABM_REMOVE,a);<br> end;<br>end;<br>