I think you want monSize >= (int)MS_MEDIUM here.