Adding virtual wxListCtrl impl of GetItem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -718,7 +718,22 @@ bool wxListCtrl::GetItem(wxListItem& info) const
|
|||||||
return m_genericImpl->GetItem(info);
|
return m_genericImpl->GetItem(info);
|
||||||
|
|
||||||
if (m_dbImpl)
|
if (m_dbImpl)
|
||||||
|
{
|
||||||
|
if (!IsVirtual())
|
||||||
m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info);
|
m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
info.SetText( OnGetItemText(info.m_itemId, info.m_col) );
|
||||||
|
info.SetImage( OnGetItemColumnImage(info.m_itemId, info.m_col) );
|
||||||
|
wxListItemAttr* attrs = OnGetItemAttr( info.m_itemId );
|
||||||
|
if (attrs)
|
||||||
|
{
|
||||||
|
info.SetFont( attrs->GetFont() );
|
||||||
|
info.SetBackgroundColour( attrs->GetBackgroundColour() );
|
||||||
|
info.SetTextColour( attrs->GetTextColour() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
bool success = true;
|
bool success = true;
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user