[[ Bug 14028 ]] Use the control's visibility state when drawing