ReleaseCapture; Form1.perform(WM_SysCommand,$F012,0);
http://www.cyberforum.ru/delphi-beginners/thread28681.html