// true if a tab was hit, otherwise false
bool wxAuiTabContainer::TabHitTest(int x, int y, wxWindow** hit) const
{
- if (!m_rect.Inside(x,y))
+ if (!m_rect.Contains(x,y))
return false;
size_t i, page_count = m_pages.GetCount();
for (i = 0; i < page_count; ++i)
{
wxAuiNotebookPage& page = m_pages.Item(i);
- if (page.rect.Inside(x,y))
+ if (page.rect.Contains(x,y))
{
*hit = page.window;
return true;
bool wxAuiTabContainer::ButtonHitTest(int x, int y,
wxAuiTabContainerButton** hit) const
{
- if (!m_rect.Inside(x,y))
+ if (!m_rect.Contains(x,y))
return false;
size_t i, button_count = m_buttons.GetCount();
for (i = 0; i < button_count; ++i)
{
wxAuiTabContainerButton& button = m_buttons.Item(i);
- if (button.rect.Inside(x,y))
+ if (button.rect.Contains(x,y))
{
*hit = &button;
return true;
continue;
wxTabFrame* tabframe = (wxTabFrame*)all_panes.Item(i).window;
- if (tabframe->m_tab_rect.Inside(pt))
+ if (tabframe->m_tab_rect.Contains(pt))
return tabframe->m_tabs;
}