added support for item attributes in virtual list control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1825,6 +1825,15 @@ int wxListCtrl::OnGetItemImage(long item) const
|
||||
return -1;
|
||||
}
|
||||
|
||||
wxListItemAttr *wxListCtrl::OnGetItemAttr(long item) const
|
||||
{
|
||||
wxASSERT_MSG( item >= 0 && (size_t)item < GetItemCount(),
|
||||
_T("invalid item index in OnGetItemAttr()") );
|
||||
|
||||
// no attributes by default
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void wxListCtrl::SetItemCount(long count)
|
||||
{
|
||||
wxASSERT_MSG( IsVirtual(), _T("this is for virtual controls only") );
|
||||
|
Reference in New Issue
Block a user