When wxAny holds an enum, it cannot be compared with an integer due to a missing conversion function. In such case, conditional properties compare a raw value rather than wxAny.
e4a36135