Replaced moved wxVScrolledWindow HitTest methods fixing bug 1841939 (wxVListBox and wxHtmlListBox).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty 2007-12-01 22:58:16 +00:00
parent d3f1209867
commit 10368bffe1
2 changed files with 3 additions and 3 deletions

View File

@ -464,7 +464,7 @@ wxPoint wxHtmlListBox::GetRootCellCoords(size_t n) const
bool wxHtmlListBox::PhysicalCoordsToCell(wxPoint& pos, wxHtmlCell*& cell) const
{
int n = HitTest(pos);
int n = VirtualHitTest(pos.y);
if ( n == wxNOT_FOUND )
return false;

View File

@ -634,7 +634,7 @@ void wxVListBox::OnLeftDown(wxMouseEvent& event)
{
SetFocus();
int item = HitTest(event.GetPosition());
int item = VirtualHitTest(event.GetPosition().y);
if ( item != wxNOT_FOUND )
{
@ -657,7 +657,7 @@ void wxVListBox::OnLeftDown(wxMouseEvent& event)
void wxVListBox::OnLeftDClick(wxMouseEvent& eventMouse)
{
int item = HitTest(eventMouse.GetPosition());
int item = VirtualHitTest(eventMouse.GetPosition().y);
if ( item != wxNOT_FOUND )
{