X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1be7a35c5ec31b6cfcab9d969c7969586441a945..5d9ef6deecb199737608453d35198f7bd574cc9e:/include/wx/listbox.h diff --git a/include/wx/listbox.h b/include/wx/listbox.h index 0556f805cf..d22b0f47d3 100644 --- a/include/wx/listbox.h +++ b/include/wx/listbox.h @@ -107,6 +107,9 @@ public: // instead bool Selected(int n) const { return IsSelected(n); } + // returns the item number at a point or wxNOT_FOUND + int HitTest(const wxPoint& point) const { return DoListHitTest(point); } + protected: // NB: due to wxGTK implementation details, DoInsert() is implemented // using DoInsertItems() and not the other way round @@ -121,6 +124,10 @@ protected: virtual void DoSetSelection(int n, bool select) = 0; + // there is already wxWindow::DoHitTest() so call this one differently + virtual int DoListHitTest(const wxPoint& WXUNUSED(point)) const + { return wxNOT_FOUND; } + DECLARE_NO_COPY_CLASS(wxListBoxBase) };