X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11358d3976afbde5e5924799e4dce2ffc0280f2c..15678bec37c6e3cb8a67a8b041579af595d4ccf3:/include/wx/listctrl.h diff --git a/include/wx/listctrl.h b/include/wx/listctrl.h index 5de7d0c77c..f0630f8a8f 100644 --- a/include/wx/listctrl.h +++ b/include/wx/listctrl.h @@ -303,6 +303,9 @@ public: Create(parent, id, pos, size, style, wxDefaultValidator, name); } + // focus/selection stuff + // --------------------- + // [de]select an item void Select(long n, bool on = TRUE) { @@ -331,6 +334,20 @@ public: // return TRUE if the item is selected bool IsSelected(long index) { return GetItemState(index, wxLIST_STATE_SELECTED) != 0; } + + // columns + // ------- + + void SetColumnImage(int col, int image) + { + wxListItem item; + item.SetMask(wxLIST_MASK_IMAGE); + item.SetImage(image); + SetColumn(col, item); + } + + void ClearColumnImage(int col) { SetColumnImage(col, -1); } + private: DECLARE_DYNAMIC_CLASS(wxListView) };