Use GetMessagePos, not GetCursorPos to make sure we get the right mouse position...