static bool InsideRect(const wxRect &rect, const wxPoint &pt) { #if wxCHECK_VERSION(2, 8, 0) return rect.Contains(pt); #else return rect.Inside(pt); #endif }