سلام
به کمک توابع api

    ReleaseCapture
SendMessage obj.hwnd, &HA1, 2, 0&