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:
Vadim Zeitlin
2001-07-11 16:22:12 +00:00
parent a5f1fd3e33
commit 6c02c32922
6 changed files with 95 additions and 18 deletions

View File

@@ -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") );