::wxSubType

Bool wxSubType(int type1, int type2)

Returns TRUE if the first type is a subtype (or equal to) the second type.