const wxSize& size = wxDefaultSize,
long style = wxLC_ICON,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = _T("wxListCtrl"))
+ const wxString& name = wxListCtrlNameStr)
{
Init();
const wxSize& size = wxDefaultSize,
long style = wxLC_ICON,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = _T("wxListCtrl"));
+ const wxString& name = wxListCtrlNameStr);
// Attributes
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 ;
void SetItemBackgroundColour( long item, const wxColour &col);
wxColour GetItemBackgroundColour( long item ) const;
+#if wxABI_VERSION >= 20602
+ // Font of an item.
+ void SetItemFont( long item, const wxFont &f);
+ wxFont GetItemFont( long item ) const;
+#endif
+
// Gets the number of selected items in the list control
int GetSelectedItemCount() const;
// convert our styles to Windows
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
+ // special Windows message handling
+ virtual WXLRESULT MSWWindowProc(WXUINT nMsg,
+ WXWPARAM wParam,
+ WXLPARAM lParam);
+
wxTextCtrl* m_textCtrl; // The control used for editing a label
wxImageList * m_imageListNormal; // The image list for normal icons