Add support for icon/label rectangles to generic wxListCtrl

Honour the value of "code" parameter in GetSubItemRect().
This commit is contained in:
Vadim Zeitlin
2019-08-27 17:11:36 +02:00
parent 9395d7f404
commit 32fe124899
2 changed files with 53 additions and 4 deletions

View File

@@ -649,7 +649,8 @@ public:
{
return GetSubItemRect(item, wxLIST_GETSUBITEMRECT_WHOLEITEM, rect);
}
bool GetSubItemRect( long item, long subItem, wxRect& rect ) const;
bool GetSubItemRect( long item, long subItem, wxRect& rect,
int code = wxLIST_RECT_BOUNDS ) const;
wxRect GetViewRect() const;
bool GetItemPosition( long item, wxPoint& pos ) const;
int GetSelectedItemCount() const;