Change MIN -> wxMin and MAX -> wxMax