From 9e5754bebdc218969efd8f2d30d389e0157e4a2f Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 17 Feb 2009 11:24:19 +0000 Subject: [PATCH] Blind implementation of GetSubItemRect() for wxListCtrl under carbon git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/osx/listctrl.h | 3 +++ src/osx/carbon/listctrl_mac.cpp | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/include/wx/osx/listctrl.h b/include/wx/osx/listctrl.h index 8d06d24d84..98ea42e277 100644 --- a/include/wx/osx/listctrl.h +++ b/include/wx/osx/listctrl.h @@ -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 ; diff --git a/src/osx/carbon/listctrl_mac.cpp b/src/osx/carbon/listctrl_mac.cpp index 655502d3a9..7ecb40a1d7 100644 --- a/src/osx/carbon/listctrl_mac.cpp +++ b/src/osx/carbon/listctrl_mac.cpp @@ -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 { -- 2.47.2