+
+ if (m_dbImpl)
+ {
+ DataBrowserItemID id;
+ DataBrowserPropertyID col = kMinColumnId;
+ Rect bounds;
+ DataBrowserPropertyPart part = kDataBrowserPropertyEnclosingPart;
+ if ( code == wxLIST_RECT_LABEL )
+ part = kDataBrowserPropertyTextPart;
+ else if ( code == wxLIST_RECT_ICON )
+ part = kDataBrowserPropertyIconPart;
+
+ if ( !(GetWindowStyleFlag() & wxLC_VIRTUAL) )
+ {
+ wxMacDataItem* thisItem = m_dbImpl->GetItemFromLine(item);
+ id = (DataBrowserItemID) thisItem;
+ }
+ else
+ id = item;
+
+ GetDataBrowserItemPartBounds( m_dbImpl->GetControlRef(), id, col, part, &bounds );
+
+ rect.x = bounds.left;
+ rect.y = bounds.top;
+ rect.width = GetClientSize().x; // we need the width of the whole row, not just the item.
+ rect.height = bounds.bottom - bounds.top;
+ }