Returns the hit test of a caption button.
The hit test of the button represents at the same time the ID of the button.