const wxPoint listPt = list->ScreenToClient(ClientToScreen(pt));
// is the point inside list control?
- if ( wxRect(list->GetSize()).Inside(listPt) )
+ if ( wxRect(list->GetSize()).Contains(listPt) )
{
int flagsList;
pagePos = list->HitTest(listPt, flagsList);
}
else // not over list control at all
{
- if ( flags && GetPageRect().Inside(pt) )
+ if ( flags && GetPageRect().Contains(pt) )
*flags |= wxBK_HITTEST_ONPAGE;
}