Panel的MouseDown事件移动就写上ReleaseCapture;SendMessage(Panel1.Handle,wm_SysCommand,$F012,0);改变大小就写上ReleaseCapture;SendMessage(Panel1.Handle,wm_SysCommand,$F008,0);