From: Vadim Zeitlin Date: Thu, 9 Mar 2006 13:08:07 +0000 (+0000) Subject: compilation fix after last commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c279d9ab2d2f012ea01434747c2f906294319d56 compilation fix after last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index 1dc7a3c2e4..cf43eeaa16 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -783,45 +783,6 @@ void wxListBox::MacScrollTo( int n ) } int wxListBox::DoListHitTest(const wxPoint& point) const -{ - //Yuck - there is no easy way to get a databrowseritem from a point - //so we need to iterate through our items to see which one this falls under - int count = GetCount(); - DataBrowserTableViewColumnID colId = 0; - - //Get column property id (req. for call to itempartbounds) - GetDataBrowserTableViewColumnProperty(m_peer->GetControlRef(), 0, &colId); - - for(int i = 1; i <= count; ++i) - { - Rect bounds; - GetDataBrowserItemPartBounds(m_peer->GetControlRef(), i, colId, - kDataBrowserPropertyEnclosingPart, - &bounds); - - //translate to client coords - MacRootWindowToWindow(&bounds.left, &bounds.top); - MacRootWindowToWindow(&bounds.right, &bounds.bottom); - -#if 0 //debugging :) - wxPrintf(wxT("L:%i R:%i T:%i B:%i HT:%i,%i\n"), - bounds.left, bounds.right, - bounds.top, bounds.bottom, - point.x, point.y); - fflush(stdout); -#endif - //if point is within the bounds, return this item - if( (point.x >= bounds.left && point.x <= bounds.right) && - (point.y >= bounds.top && point.y <= bounds.bottom) ) - { - return i - 1; //found - } - } - - return wxNOT_FOUND; -} - -int wxListBox::MacHitTest(const wxPoint& point) { //Yuck - there is no easy way to get a databrowseritem from a point //so we need to iterate through our items to see which one this falls under