//只需在mousedown时向form发出move消息即可。<br><br>procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;<br> Shift: TShiftState; X, Y: Integer);<br>begin<br> if Button <> mbRight then<br> begin <br> ReleaseCapture;<br> Form1.Perform(WM_SysCommand, $f017, 0);<br> end;<br>end;<br>