Move virtual stub functions to wxListCtrlBase
This commit is contained in:
@@ -3240,31 +3240,6 @@ wxListCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
// virtual list controls
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxString wxListCtrl::OnGetItemText(long WXUNUSED(item), long WXUNUSED(col)) const
|
||||
{
|
||||
// this is a pure virtual function, in fact - which is not really pure
|
||||
// because the controls which are not virtual don't need to implement it
|
||||
wxFAIL_MSG( wxT("wxListCtrl::OnGetItemText not supposed to be called") );
|
||||
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
int wxListCtrl::OnGetItemImage(long WXUNUSED(item)) const
|
||||
{
|
||||
wxCHECK_MSG(!GetImageList(wxIMAGE_LIST_SMALL),
|
||||
-1,
|
||||
wxT("List control has an image list, OnGetItemImage or OnGetItemColumnImage should be overridden."));
|
||||
return -1;
|
||||
}
|
||||
|
||||
int wxListCtrl::OnGetItemColumnImage(long item, long column) const
|
||||
{
|
||||
if (!column)
|
||||
return OnGetItemImage(item);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
wxItemAttr *wxListCtrl::DoGetItemColumnAttr(long item, long column) const
|
||||
{
|
||||
if ( IsVirtual() )
|
||||
|
Reference in New Issue
Block a user