demonstration how to clip cursor in the window (polling and hook versions)