]> git.saurik.com Git - wxWidgets.git/commitdiff
added test for HitTest(m_dragPoint) bug to the sample
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Aug 2001 15:41:46 +0000 (15:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Aug 2001 15:41:46 +0000 (15:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/listctrl/listtest.cpp

index 8fc8a10781223d1a445d5d7293bfb9a9b87c25f5..b355ed1a7f3f8e573f11168dad24de8dd623dcf2 100644 (file)
@@ -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)