X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc6fde4b1dd5bfd8ae22839ff9a69cf24eb9120..8ffd43c56b793781fde046aa532340b92a0067eb:/include/wx/msw/listbox.h diff --git a/include/wx/msw/listbox.h b/include/wx/msw/listbox.h index 7afb83a607..15d2a6cda3 100644 --- a/include/wx/msw/listbox.h +++ b/include/wx/msw/listbox.h @@ -78,6 +78,9 @@ public: // allows to get the item and use SetXXX functions to set it's appearance wxOwnerDrawn *GetItem(size_t n) const { return m_aItems[n]; } + + // get the index of the given item + int GetItemIndex(wxOwnerDrawn *item) const { return m_aItems.Index(item); } #endif // wxUSE_OWNER_DRAWN virtual void Append(const wxString& item);