From 6dc34ebbd8f787eb42018df5b5fb938c1c7390aa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 25 Aug 2001 15:41:46 +0000 Subject: [PATCH] added test for HitTest(m_dragPoint) bug to the sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/listctrl/listtest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 8fc8a10781..b355ed1a7f 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -579,8 +579,11 @@ void MyListCtrl::OnColClick(wxListEvent& event) void MyListCtrl::OnBeginDrag(wxListEvent& event) { - wxLogMessage( wxT("OnBeginDrag at %d,%d."), - event.m_pointDrag.x, event.m_pointDrag.y ); + const wxPoint& pt = event.m_pointDrag; + + int flags; + wxLogMessage( wxT("OnBeginDrag at (%d, %d), item %ld."), + pt.x, pt.y, HitTest(pt, flags) ); } void MyListCtrl::OnBeginRDrag(wxListEvent& event) -- 2.45.2