long SetItem( long index, int col, const wxString& label, int imageId = -1 );
int GetItemState( long item, long stateMask ) const;
bool SetItemState( long item, long state, long stateMask);
-#if WXWIN_COMPATIBILITY_2_4
- wxDEPRECATED(bool SetItemImage( long item, int image, int selImage ));
-#endif
- bool SetItemImage( long item, int image );
+ bool SetItemImage( long item, int image, int selImage = -1 );
wxString GetItemText( long item ) const;
void SetItemText( long item, const wxString& str );
wxUIntPtr GetItemData( long item ) const;
bool SetItemState(long item, long state, long stateMask) ;
// Sets the item image
-#if WXWIN_COMPATIBILITY_2_4
- wxDEPRECATED(bool SetItemImage(long item, int image, int selImage)) ;
-#endif
- bool SetItemImage(long item, int image) ;
+ bool SetItemImage(long item, int image, int selImage = -1) ;
// Gets the item text
wxString GetItemText(long item) const ;
return true;
}
-#if WXWIN_COMPATIBILITY_2_4
-bool wxGenericListCtrl::SetItemImage( long item, int image, int WXUNUSED(selImage) )
-{
- wxListItem info;
- info.m_image = image;
- info.m_mask = wxLIST_MASK_IMAGE;
- info.m_itemId = item;
- m_mainWin->SetItem( info );
- return true;
-}
-#endif
-
-bool wxGenericListCtrl::SetItemImage( long item, int image )
+bool
+wxGenericListCtrl::SetItemImage( long item, int image, int WXUNUSED(selImage) )
{
wxListItem info;
info.m_image = image;
}
// Sets the item image
-#if WXWIN_COMPATIBILITY_2_4
bool wxListCtrl::SetItemImage(long item, int image, int WXUNUSED(selImage))
{
wxListItem info;
return SetItem(info);
}
-#endif
-
-bool wxListCtrl::SetItemImage(long item, int image)
-{
- wxListItem info;
-
- info.m_mask = wxLIST_MASK_IMAGE;
- info.m_image = image;
- info.m_itemId = item;
-
- return SetItem(info);
-}
// Gets the item text
wxString wxListCtrl::GetItemText(long item) const