]> git.saurik.com Git - wxWidgets.git/commitdiff
Blind implementation of GetSubItemRect() for wxListCtrl under carbon
authorRobert Roebling <robert@roebling.de>
Tue, 17 Feb 2009 11:24:19 +0000 (11:24 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 17 Feb 2009 11:24:19 +0000 (11:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/osx/listctrl.h
src/osx/carbon/listctrl_mac.cpp

index 8d06d24d845a4e6195efe452d486741b343c444f..98ea42e277d9f709f931eeb66fc70acd552b5c79 100644 (file)
@@ -127,6 +127,9 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
   // Gets the item rectangle
   bool GetItemRect(long item, wxRect& rect, int code = wxLIST_RECT_BOUNDS) const ;
 
+  // Gets the item rectangle of a subitem
+  bool GetSubItemRect( long item, long subItem, wxRect& rect, int code = wxLIST_RECT_BOUNDS ) const;
+
   // Gets the item position
   bool GetItemPosition(long item, wxPoint& pos) const ;
 
index 655502d3a9b434106e96f05369d4299e151b91a1..7ecb40a1d7f7dc27f7f046335cce9706de44961a 100644 (file)
@@ -1383,6 +1383,15 @@ wxRect wxListCtrl::GetViewRect() const
     return rect;
 }
 
+bool wxListCtrl::GetSubItemRect( long item, long subItem, wxRect& rect, int code ) const
+{
+    if (m_genericImpl)
+        return m_genericImpl->GetItemRect(item, rect, code);
+
+    // TODO: implement for DataBrowser implementation        
+    return false;
+}
+
 // Gets the item rectangle
 bool wxListCtrl::GetItemRect(long item, wxRect& rect, int code) const
 {