added wxListBox::HitTest() from Ryan (patch 1446207)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-03-09 12:48:52 +00:00
parent 22d29469a0
commit c00fed0ef4
10 changed files with 157 additions and 0 deletions

View File

@@ -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)
};